1from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
2import torch
3
4model_id = "COinCO/Qwen2.5-VL-3B-Size"
5
6model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
7 model_id,
8 torch_dtype=torch.float16,
9 device_map="auto",
10)
11processor = AutoProcessor.from_pretrained(model_id)| Parameter | Value |
|---|---|
| Base Model | Qwen2.5-VL-3B-Instruct |
| Method | LoRA fine-tuning (merged) |
| Dataset | COinCO |
| Training Samples | ~5,000 |
| Epochs | 3 |
| Learning Rate | 2e-4 |
| Model | Accuracy |
|---|---|
| Baseline (Qwen2.5-VL-3B) | 50.21% |
| This model | 66.01% (+15.80%) |
| Model | Accuracy |
|---|---|
| Baseline | 52.55% |
| This model | 83.20% (+30.65%) |
The baseline model performs near random chance (50.21%) on size classification and heavily relies on visual artifacts. After fine-tuning, performance improves significantly on both inpainted and real images.
1@article{yang2025coinco,
2 title={Common Inpainted Objects In-N-Out of Context},
3 author={Tianze Yang and Tyson Jordan and Ruitong Sun and Ninghao Liu and Jin Sun},
4 year={2025}
5}