Given an image with an object marked by a red bounding box, the model determines whether the object can reasonably appear together with other objects in the scene. If the combination is unusual or uncommon in real-world contexts, the object is classified as out-of-context.
1from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
2import torch
3
4model_id = "COinCO/Qwen2.5-VL-3B-Co_occurrence"
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)
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}