# ConClick Code and assets for **ConClick: Element-wise Contrastive Learning Improves GUI Grounding**. ConClick combines coordinate supervision with listwise ranking and pairwise margin losses on target–distractor examples. ReClick revisits promising regions and selects a click using equally weighted cross-view support and spatial agreement. | Released ConClick-8B | ScreenSpot-Pro | MMBench-GUI L2 | OSWorld-G | |---|---:|---:|---:| | Direct | 66.03 | 86.28 | 70.20 | | + ReClick | **72.36** | **87.28** | **71.76** | [🤗 Model](https://huggingface.co/ruotian/ConClick-8B) · [🤗 Data](https://huggingface.co/datasets/ruotian/ConClick-Data) ## Install Use Python 3.12 and an NVIDIA GPU (reference inference: 1× H200). ~~~bash git clone https://github.com/zhangruotian/ConClick.git cd ConClick python -m venv .venv source .venv/bin/activate pip install -r requirements.txt ~~~ ## Download the model ~~~bash hf download ruotian/ConClick-8B --revision conclick --local-dir models/ConClick-8B MODEL=models/ConClick-8B ~~~ ## Download benchmarks ~~~bash hf download lscpku/ScreenSpot-Pro --repo-type dataset --revision 211c2a6b5214b4dc8555a639a47575a9abd48c99 --local-dir data/screenspot-pro hf download OpenGVLab/MMBench-GUI --repo-type dataset --revision e27757e3910e0d5995b811f916b509b4e34a4690 --include L2_annotations.json MMBench-GUI-OfflineImages.zip --local-dir data/mmbench-gui unzip data/mmbench-gui/MMBench-GUI-OfflineImages.zip -d data/mmbench-gui git clone https://github.com/xlang-ai/OSWorld-G.git data/OSWorld-G git -C data/OSWorld-G checkout daa6bd8e0e629f0917ad2984df930bf0bd967540 ~~~ ## Evaluate Direct and ReClick Run all three Direct evaluations: ~~~bash python evaluate.py --model "$MODEL" --benchmark screenspot_pro --data data/screenspot-pro --output outputs/ssp-direct.jsonl python evaluate.py --model "$MODEL" --benchmark mmbench_gui_l2 --data data/mmbench-gui --output outputs/mmb-direct.jsonl python evaluate.py --model "$MODEL" --benchmark osworld_g --data data/OSWorld-G --output outputs/osw-direct.jsonl ~~~ Run all three ReClick evaluations: ~~~bash python evaluate.py --model "$MODEL" --benchmark screenspot_pro --data data/screenspot-pro --reclick --output outputs/ssp-reclick.jsonl python evaluate.py --model "$MODEL" --benchmark mmbench_gui_l2 --data data/mmbench-gui --reclick --output outputs/mmb-reclick.jsonl python evaluate.py --model "$MODEL" --benchmark osworld_g --data data/OSWorld-G --reclick --output outputs/osw-reclick.jsonl ~~~ ## Single-image inference ~~~bash python infer.py --model "$MODEL" --image screenshot.png --instruction "Click the Save button" python infer.py --model "$MODEL" --image screenshot.png --instruction "Click the Save button" --reclick ~~~ ## Reproduce training Train on 2 GPUs (reference: 2× H100): ~~~bash hf download ruotian/ConClick-Data --repo-type dataset --revision conclick --local-dir data/conclick-data CUDA_VISIBLE_DEVICES=0,1 bash reproduce.sh data/conclick-data outputs/reproduction ~~~ The checkpoint is saved to `outputs/reproduction`; set `MODEL=outputs/reproduction` to evaluate it. This deterministic recipe produces a new checkpoint; use the released model for paper results. Code is Apache-2.0. Screenshot terms are described in the dataset card.