[QoL fix] [Image processing] Add warning on assumption of channel dim and...
[QoL fix] [Image processing] Add warning on assumption of channel dim and avoid infering when inputs are PIL.Image (#31364) * Add warning on assumption of channel dim Use PIL info whenever possible to decide channel axis * Fix ruff format * Remove type checking Improve warning message * Update src/transformers/models/siglip/image_processing_siglip.py Co-authored-by:amyeroberts <22614925+amyeroberts@users.noreply.github.com> * Update src/transformers/image_utils.py Co-authored-by:
amyeroberts <22614925+amyeroberts@users.noreply.github.com> * Update src/transformers/image_utils.py Co-authored-by:
amyeroberts <22614925+amyeroberts@users.noreply.github.com> --------- Co-authored-by:
amyeroberts <22614925+amyeroberts@users.noreply.github.com>
Showing
Please register or sign in to comment