Skip to content

🚨Fix MobileViT image processor default interpolation to BICUBIC#43024

Merged
yonigozlan merged 3 commits intohuggingface:mainfrom
lukepayyapilli:fix-mobilevit-interpolation
Jan 6, 2026
Merged

🚨Fix MobileViT image processor default interpolation to BICUBIC#43024
yonigozlan merged 3 commits intohuggingface:mainfrom
lukepayyapilli:fix-mobilevit-interpolation

Conversation

@lukepayyapilli
Copy link
Contributor

Summary

Updates MobileViT image processor default interpolation from BILINEAR to BICUBIC to match:

Changes

  • image_processing_mobilevit.py: Updated default resample to BICUBIC
  • image_processing_mobilevit_fast.py: Updated default resample to BICUBIC

Contributes to #28180

@lukepayyapilli lukepayyapilli force-pushed the fix-mobilevit-interpolation branch 3 times, most recently from 497675a to 33e14ad Compare December 26, 2025 17:45
The original MobileViT implementation (Apple's ml-cvnets) and timm both
use BICUBIC interpolation for image preprocessing. Updates both slow and
fast image processors to match.

Contributes to huggingface#28180
@lukepayyapilli lukepayyapilli force-pushed the fix-mobilevit-interpolation branch from 33e14ad to dafe7d8 Compare January 5, 2026 14:06
Copy link
Member

@yonigozlan yonigozlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could indeed verify that we should have Bicubic by default. Thanks for fixing @lukepayyapilli !

@yonigozlan yonigozlan changed the title Fix MobileViT image processor default interpolation to BICUBIC 🚨Fix MobileViT image processor default interpolation to BICUBIC Jan 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

[For maintainers] Suggested jobs to run (before merge)

run-slow: mobilevit

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@yonigozlan yonigozlan merged commit a34922d into huggingface:main Jan 6, 2026
20 checks passed
@lukepayyapilli lukepayyapilli deleted the fix-mobilevit-interpolation branch January 6, 2026 15:20
@lukepayyapilli
Copy link
Contributor Author

No problem - thank you for the review + merge @yonigozlan!

SangbumChoi pushed a commit to SangbumChoi/transformers that referenced this pull request Jan 23, 2026
…ingface#43024)

* Fix MobileViT image processor default interpolation to BICUBIC

The original MobileViT implementation (Apple's ml-cvnets) and timm both
use BICUBIC interpolation for image preprocessing. Updates both slow and
fast image processors to match.

Contributes to huggingface#28180

* Remove copy substitution - code now matches source

---------

Co-authored-by: Yoni Gozlan <74535834+yonigozlan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants