Update README.md
Browse files44 unmodified lines4546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214344 unmodified linesconda activate SpatialScore```## DatasetPlease check out [SpaitalScore](https://huggingface.co/datasets/haoningwu/SpatialScore) to download our proposed benchmark (`SpatialScore`).If you cannot access Huggingface, you can use [hf-mirror](https://hf-mirror.com/) to download models.```export HF_ENDPOINT=https://hf-mirror.com # Add this before huggingface-cli download```You can follow the commands below to prepare the data:```huggingface-cli download --resume-download --repo-type dataset haoningwu/SpatialScore --local-dir ./ --local-dir-use-symlinks Falseunzip SpatialScore_benchmark.zip```## EvaluationConsidering the current mainstream model architectures, we have prioritized support for the Qwen2.5-VL and Qwen3-VL series models.You can evaluate them on SpatialScore using the following commands:```CUDA_VISIBLE_DEVICES=0,1 python test_qwen.py --model_name qwen3vl-4b --model_path ./huggingface/Qwen3-VL-4B-Instruct --dataset_json_path ./SpatialScore_benchmark/SpatialScore_benchmark.ndjson --output_dir ./eval_results```Now, the All-in-one script supporting all other models is also available.You can evaluate other models on SpatialScore using the following commands:```CUDA_VISIBLE_DEVICES=0,1 python test_all_in_one.py --model_name llava-ov-7b --model_path ../huggingface/LLaVA-OneVision-7B --dataset_json_path ./SpatialScore_benchmark/SpatialScore_benchmark.ndjson --output_dir ./eval_results```Our final evaluation encompassed rule-based evaluation and LLM-based answer extraction, which are combined to calculate the final accuracy.Therefore, you need to configure [GPT-OSS](https://github.com/openai/gpt-oss) and download the corresponding [GPT-OSS-20B](https://huggingface.co/openai/gpt-oss-20b) checkpoint before running the following script to compute the final score:```MKL_THREADING_LAYER=GNU CUDA_VISIBLE_DEVICES=0 python ./evaluate_results.py --input ./eval_results/qwen3vl-4b```## Inference with SpatialAgentBefore using SpatialAgent, you need to install the additional dependencies required by the toolbox according to the Requirements section.In addition, you should download the checkpoints for the spatial perception tools being used and place them in the `./SpatialAgent/checkpoints/` directory, which should have a structure similar to the following:```./SpatialAgent/checkpointsβββ dinov2-largeβββ Orient-Anythingβ βββ base100pβ βββ base100p2β βββ base25pβ βββ base50pβ βββ base75pβ βββ base75p2β βββ celargeβ βββ cropbaseEx03β βββ croplargeEX03β βββ croplargeEX2β βββ cropsmallEx03β βββ mixreallargeβ βββ ronormsigma1βββ RAFT./SpatialAgent/DepthAnythingV2βββ ckptβ βββ hypersim.pthβ βββ vkitti.pth./SpatialAgent/DetAny3Dβββ GroundingDINOβ βββ weightsβ βββ groundingdino_swinb_cogcoor.pthβββ checkpoints/detany3dβ βββ detany3d_ckptsβ βββ dino_ckptsβ βββ sam_ckptsβ βββ unidepth_ckptsβββ models--bert-base-uncased```Furthermore, for [DetAny3D](https://github.com/OpenDriveLab/DetAny3D) and [DepthAnythingV2](https://github.com/DepthAnything/Depth-Anything-V2), you will also need to refer to their respective repositories, download the required checkpoints, and place them in their corresponding directories.Our SpatialAgent supports two reasoning paradigms: Plan-Execute and ReAct. You can perform inference using the following script:```# Plan-Execute paradigmCUDA_VISIBLE_DEVICES=0 python inference_plan-execute.py --start 0 --end 1000 --prompt_format cota --model_path ../huggingface/Qwen3-VL-4B-Instruct --model_name qwen3vl-4b# ReAct paradigmCUDA_VISIBLE_DEVICES=0 python inference_ReAct.py --start 0 --end 1000 --execute --prompt_format cota --model_path ../huggingface/Qwen3-VL-4B-Instruct --model_name qwen3vl-4b```## CitationIf you use this code and data for your research or project, please cite:@inproceedings{wu2026spatialscore,author = {Wu, Haoning and Huang, Xiao and Chen, Yaohui and Zhang, Ya and Wang, Yanfeng and Xie, Weidi},44 unmodified lines454647484950515244 unmodified linesconda activate SpatialScore```## CitationIf you use this code, model, and data for your research or project, please cite:@inproceedings{wu2026spatialscore,author = {Wu, Haoning and Huang, Xiao and Chen, Yaohui and Zhang, Ya and Wang, Yanfeng and Xie, Weidi},
README.md+1-92