transformers
6da3313a - Fix RGB early-return skipping PNG tRNS compositing (#49005)

Commit
1 day ago
Fix RGB early-return skipping PNG tRNS compositing (#49005) * Fix RGB early-return skipping PNG tRNS compositing Compositing convert_to_rgb paths in idefics2/mllama/chameleon treated mode=="RGB" as opaque, so PNG tRNS transparency never blended onto white. Signed-off-by: sinksilk <785976238@qq.com> * Address review: simplify idefics2 tRNS test Move convert_to_rgb imports to the module top and set transparency via image.info instead of a PNG buffer round-trip. Signed-off-by: sinksilk <785976238@qq.com> * Update tests/models/idefics2/test_image_processing_idefics2.py * Apply repo consistency fixes * fix --------- Signed-off-by: sinksilk <785976238@qq.com> Co-authored-by: Raushan Turganbay <raushan.turganbay@alumni.nu.edu.kz> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: raushan <raushan@huggingface.co>
Author
Parents
Loading