transformers
60634caa - 🚨 Fix ConvNeXt image processor default interpolation to BICUBIC (#42934)

Commit
170 days ago
🚨 Fix ConvNeXt image processor default interpolation to BICUBIC (#42934) * Fix ConvNeXt image processor default interpolation to BICUBIC The original ConvNeXt implementation uses BICUBIC interpolation for image preprocessing, but the HuggingFace image processor defaulted to BILINEAR. This change aligns the default with the original implementation. Changes: - Update default resample from BILINEAR to BICUBIC in ConvNextImageProcessor - Update conversion script to explicitly use BICUBIC - Add test to verify default interpolation is BICUBIC Reference: https://github.com/facebookresearch/ConvNeXt/blob/main/datasets.py Fixes part of #28180 * Fix import ordering for ruff linter * Fix ConvNextImageProcessorFast default interpolation to BICUBIC * nit + fix center_crop --------- Co-authored-by: Yoni Gozlan <74535834+yonigozlan@users.noreply.github.com> Co-authored-by: yonigozlan <yoni.gozlan@huggingface.co>
Parents
Loading