Skip to content

Fix missing image processors backends#45165

Merged
zucchini-nlp merged 3 commits intohuggingface:mainfrom
zucchini-nlp:missing-image-processor
Apr 7, 2026
Merged

Fix missing image processors backends#45165
zucchini-nlp merged 3 commits intohuggingface:mainfrom
zucchini-nlp:missing-image-processor

Conversation

@zucchini-nlp
Copy link
Copy Markdown
Member

What does this PR do?

Emu3 was not updated in recent refactor and blip files were swapped. This PR fixes it

Do we need anything to support BC importing from old files, or does it happen in LazyImports @yonigozlan ?

@zucchini-nlp zucchini-nlp requested a review from yonigozlan April 1, 2026 14:18
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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.

Copy link
Copy Markdown
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.

Hey @zucchini-nlp ! Sorry for the delay in reviewing. I'm actually not sure about this, as this is one case where we could have an issue with backward compatibility (only case where we removed an "image_processing_...py" without replacing it with a torchbackend, so if we try to import from transformers.models.emu3.image_processing_emu3 import Emu3ImageProcessor we will get an error).
I think we can leave it as it was until we add a torchvision backend for it. + in the current state, it's kind of a test to see if we support backward compatibility with old custom image processor (inheriting from BaseImageProcessor).
However the fix for blip is great thanks for catching this! Approving only for this part

@zucchini-nlp
Copy link
Copy Markdown
Member Author

Got it, thanks! I will add a small comment in Emu3 with reasons on why it is not updated then :)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

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

run-slow: blip, emu3

@zucchini-nlp zucchini-nlp enabled auto-merge April 7, 2026 13:30
@zucchini-nlp zucchini-nlp added this pull request to the merge queue Apr 7, 2026
Merged via the queue into huggingface:main with commit 1897dd0 Apr 7, 2026
16 checks passed
@zucchini-nlp zucchini-nlp deleted the missing-image-processor branch April 7, 2026 13:46
juliabush pushed a commit to juliabush/transformers that referenced this pull request Apr 7, 2026
* missing

* revert emu3

* nope

fix final test
bigshanedogg pushed a commit to bigshanedogg/transformers that referenced this pull request Apr 9, 2026
sirzechs66 pushed a commit to sirzechs66/transformers that referenced this pull request Apr 18, 2026
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