transformers
60570c1f - Fix the HunyuanVL's torchvision backend (#47499)

Commit
123 days ago
Fix the HunyuanVL's torchvision backend (#47499) * Qwen2VL's _preprocess flattens 2x2 merge blocks in block-major order, but HunYuanVL's patch merger and multimodal RoPE expect row-major patch layout. Override _preprocess to use row-major permute so the torchvision backend matches the PIL reference and no longer produces garbled OCR output. * update --------- Co-authored-by: jiazhimi <jiazhimi@tencent.com>
Author
Parents
Loading