Skip to content

Commit ace0dc6

Browse files
authored
Fix Qwen3-VL normalization: use 0.5/0.5/0.5 from checkpoint (#105)
The qwen3-vl VLMSpec hardcoded OpenAI-CLIP normalization stats, but Qwen3-VL checkpoints specify image_mean=image_std=[0.5, 0.5, 0.5]. This caused a silent ~1.86x overscale on every pixel fed to the vision encoder. Fixes #82.
1 parent 917dc99 commit ace0dc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/src/coreai_models/vlm/export.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def num_visual_tokens(self) -> int:
8181
patch_size=16,
8282
spatial_merge_size=2,
8383
temporal_patch_size=2, # Qwen frames-per-image (single image -> duplicated)
84-
image_mean=(0.48145466, 0.4578275, 0.40821073),
85-
image_std=(0.26862954, 0.26130258, 0.27577711),
84+
image_mean=(0.5, 0.5, 0.5),
85+
image_std=(0.5, 0.5, 0.5),
8686
rescale_factor=1.0,
8787
),
8888
}

0 commit comments

Comments
 (0)