๐Ÿš€ Vision-R1: Qwen3-VL Training & Evaluation

April 17, 2026 ยท View on GitHub

Back to Main

This document provides a comprehensive guide for training and evaluating Qwen3-VL using Vision-R1, powered by the EasyR1 framework.

We provide an end-to-end pipeline from environment setup and model training to checkpoint merging and standardized evaluation.


๐Ÿ› ๏ธ Installation

Clone the EasyR1 repository and install it in editable mode:

cd Vision-R1/EasyR1
pip install -e .

๐Ÿƒโ€โ™‚๏ธ Training Qwen3-VL with Vision-R1

Start the training process using the provided configuration file:

python3 -m verl.trainer.main config=./examples/qwen3_vl_8b_vision_r1.yaml

๐Ÿ’ก Note for Qwen2.5-VL Users: Due to differences in grounding prompts and coordinate representation methods between Qwen3-VL and Qwen2.5-VL, if you wish to train the Qwen2.5-VL model using this codebase, you must adjust the dataset loading logic in verl/utils/dataset.py and the corresponding settings in visionr1.py or use our Open-R1 version.

Merge Checkpoint

After training, convert the deepspeed/actor checkpoints into the standard Hugging Face format:

python3 scripts/model_merger.py --local_dir ./checkpoints/Qwen3-VL-8B-Instruct-Vision-R1/global_step_200/actor

๐Ÿ“Š Evaluation

Compared to the official implementation, our evaluation pipeline offers several key enhancements designed for out-of-the-box usability:

  • Automated Data Preparation: Provided scripts for seamless ODINW-13 and COCO 2017 downloads.
  • Clear Configurations: Explicit instructions on structuring dataset_config.py.
  • Environment Compatibility: Set Qwen3-VL coordinate representation formats explicitly via OS environment variables.
  • COCO Benchmark Support: Fully integrated COCO evaluation metrics.

1. Download Datasets

Download ODINW-13:

cd Vision-R1/eval/eval_qwen3_vl
python download_odinw.py --dataset_path ./odinw

Download COCO 2017:

# Download, extract, and clean up annotations
mkdir -p coco/coco2017 
wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip 
unzip annotations_trainval2017.zip -d coco/coco2017 
rm annotations_trainval2017.zip

# Download, extract, and clean up val images
wget http://images.cocodataset.org/zips/val2017.zip 
unzip val2017.zip -d coco/coco2017 
rm val2017.zip
๐Ÿ“‚ Click to view the expected directory structure
/path/to/odinw/
โ”œโ”€โ”€ dataset_config.py          # Dataset configuration file (required)
โ”œโ”€โ”€ AerialMaritimeDrone/       # Individual datasets
โ”‚   โ”œโ”€โ”€ large/
โ”‚   โ”‚   โ”œโ”€โ”€ train/
โ”‚   โ”‚   โ””โ”€โ”€ test/
โ”‚   โ””โ”€โ”€ tiled/
โ”œโ”€โ”€ Aquarium/
โ”œโ”€โ”€ Cottontail Rabbits/
โ”œโ”€โ”€ EgoHands/
โ”œโ”€โ”€ NorthAmerica Mushrooms/
โ”œโ”€โ”€ Packages/
โ”œโ”€โ”€ Pascal VOC/
โ”œโ”€โ”€ Pistols/
โ”œโ”€โ”€ Pothole/
โ”œโ”€โ”€ Raccoon/
โ”œโ”€โ”€ ShellfishOpenImages/
โ”œโ”€โ”€ Thermal Dogs and People/
โ””โ”€โ”€ Vehicles OpenImages/

/path/to/coco/
โ”œโ”€โ”€ dataset_config.py          # Dataset configuration file (required)
โ”œโ”€โ”€ coco2017/
โ”‚   โ”œโ”€โ”€ annotations
โ”‚   โ”‚   โ”œโ”€โ”€ instances_val2017.json
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ””โ”€โ”€ val2017

2. Install Evaluation Dependencies

pip install -r requirements.txt

3. Inference & Evaluation

Before running the scripts, please update the model-path, data-dir, output-file, and input-file arguments inside the .sh files according to your local setup. For other inference settings, you can update them based on your device.

bash infer_instruct.sh
bash eval_instruct.sh

โš ๏ธ Important: Currently, only the Instruct evaluation mode has been fully verified.


๐Ÿ† Experimental Results

Our proposed Vision-R1 still demonstrates significant improvements across various object detection benchmarks, particularly enhancing the performance of Qwen3-VL-8B. These results further verify the generalization capabilites of our Vision-R1.

COCO2017 Object Detection Results

ModelmAPmAP@50mAP@75mAP (S)mAP (M)mAP (L)
Qwen2.5-VL-7B0.1770.2730.180โ€”โ€”โ€”
Qwen3-VL-8B0.3070.4550.3170.1490.3480.543
Qwen3-VL-8B + Vision-R10.3660.5260.3910.1780.4180.571

๐Ÿ“Š ODINW-13 mAP Comparison

ModelAerialAquariumRabbitsEgoHandsMushroomsPackagesPascalPistolsPotholeRaccoonShellfishThermalVehiclesAvg.
Qwen2.5-VL-7B0.0780.2030.7350.3220.0700.5760.4980.4850.0740.4010.4270.3800.5630.370
Qwen3-VL-8B0.0850.2750.6590.5070.6530.4380.4640.5590.2120.6020.3050.5620.5550.452
Qwen3-VL-8B + Vision-R10.0270.2980.6470.5910.7850.4380.5130.5610.2450.5960.3800.6330.5970.485

(Note: Best results in the ODINW-13 evaluation are highlighted in bold.)


๐Ÿ“‘ Citation

If you find our repository or paper useful, please star this repo and cite our work:

@misc{zhan2025visionr1evolvinghumanfreealignment,
      title={Vision-R1: Evolving Human-Free Alignment in Large Vision-Language Models via Vision-Guided Reinforcement Learning}, 
      author={Yufei Zhan and Yousong Zhu and Shurong Zheng and Hongyin Zhao and Fan Yang and Ming Tang and Jinqiao Wang},
      year={2025},
      eprint={2503.18013},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2503.18013}, 
}

โš ๏ธ Note on Datasets: This repository provides scripts to download evaluation datasets for your convenience. If you use the COCO 2017 or ODINW datasets in your research, please ensure you also cite their respective original papers and authors.