qwen2.5vl-changedetection
Built with Qwen. Qwen2.5-VL-3B-Instruct
fine-tuned with LoRA for scene change detection with metric move distances from RGB frames only,
on DR8803VL/vlm-change-detection-4k.
It is the 2D ablation of jimtjames/qwen3d_rgbd_dist:
the same frames, questions, answers and LoRA training, but plain images instead of depth-lifted 3D
voxel tokens.
The model sees two walkthroughs of the same room, before and after some objects changed, and answers in JSON:
[{"action":"moved","class":"pot","distance_m":1.09},{"action":"removed","class":"cup"}]
distance_m is given for moved objects visible in both walkthroughs. A second task asks for counts:
{"moved": n, "added": n, "removed": n}.
Inputs
- 16 frames per state (before and after), 256 px RGB, no depth or camera poses. After frame k is taken from the same camera pose as before frame k, and the prompt says so.
- Each frame is its own Qwen2.5-VL image block (81 vision tokens), labelled
before 1: <image> ... before 16: <image> after 1: <image> ... after 16: <image>, with the standard Qwen2.5-VL M-RoPE and causal attention.
Training
| setting | value |
|---|---|
| init | Qwen/Qwen2.5-VL-3B-Instruct |
| trainable | LoRA r=16, alpha=32, dropout 0.05 on LLM q/k/v/o/gate/up/down, plus lm_head (32.4M params); the ViT and everything else frozen |
| iterations | this checkpoint: 12,000 of a 20,000-iteration run, batch 2 (2 GPUs x 1), LR 1e-4 constant after 500 warmup iterations |
| tasks | describe and count, JSON answers |
| hardware | 2x NVIDIA CMP 170HX |
Evaluation
100 validation examples per task (the same examples as qwen3d_rgbd_dist).
| metric | this model (2D, 12k) | qwen3d_rgbd_dist (3D RGB-D, 20k) |
|---|---|---|
| change precision / recall / F1 | 0.648 / 0.643 / 0.645 | 0.626 / 0.662 / 0.643 |
| move / add / remove F1 | 0.710 / 0.440 / 0.378 | 0.681 / 0.364 / 0.509 |
| move distance MAE / median (matched pairs) | 0.29 m / 0.08 m | 0.20 m / 0.09 m |
| matched pairs within 0.1 / 0.25 / 0.5 m | 56.5% / 79.2% / 88.4% | 54.6% / 82.7% / 91.0% |
| move-distance F1 at 0.1 / 0.25 / 0.5 m | 0.411 / 0.576 / 0.643 | 0.385 / 0.583 / 0.641 |
| count accuracy moved / added / removed / all | 0.26 / 0.65 / 0.39 / 0.09 | 0.25 / 0.70 / 0.48 / 0.10 |
| total-count MAE | 1.28 | 1.33 |
Move-distance F1: a predicted move is paired with a true move of the same class (min-cost assignment) and is a hit when its distance is within the threshold; precision is over predicted moves with a distance, recall over true moves with a distance (560). Using either model's detections with every distance set to the most common move, 0.5 m, gives F1 of about 0.30 / 0.43 / 0.53, so part of the distance score is the dataset's prior.
Use
model_final.pth is a full detectron2 checkpoint of the Qwen-3D training code (all weights, bf16,
~8 GB). Load it with MODEL.WEIGHTS model_final.pth VLMCD.INPUT_MODE 2d CAUSAL_MASK True USE_LORA True LORA_RANK 16 LORA_ALPHA 32 VLMCD.FRAMES_PER_STATE 16 VLMCD.IMAGE_SIZE 0 VLMCD.ANSWER_FORMAT json.
Code: rabidsquirrel4/spatial_llm branch 2d-vlm-ablation (with the rabidsquirrel4/qwen3d
submodule); the resolved training config is vlm_cd/configs/vlmcd_qwen25vl_2d.yaml there.
License
A derivative of Qwen2.5-VL-3B-Instruct, distributed under the
Qwen Research License Agreement (non-commercial research and evaluation use only); see
NOTICE.
Model tree for jimtjames/qwen2.5vl-changedetection
Base model
Qwen/Qwen2.5-VL-3B-Instruct