Uh oh!
There was an error while loading. Please reload this page.
Fix AttributeError of VisualClozeProcessor - #12121
Conversation
a-r-r-o-w
left a comment
There was a problem hiding this comment.
Looks correct to me! Just curious, why calling self._resize_and_crop and not self.resize?
Thanks for the reply! Not sure which one is the author’s intended approach, but since they use Reference: Edit: In the authors’ original repo, they apply resize first and then perform a center crop. Therefore, using |
Justin900429
commented
Sep 10, 2025
Gentle ping — would love some feedback on this when time permits. |
HuggingFaceDocBuilderDev
commented
Sep 10, 2025
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. |
a-r-r-o-w
commented
Sep 10, 2025
@Justin900429 sorry about the delay, i forgot to merge |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Fixes an AttributeError in VisualClozePipeline where the code attempted to access a non-existent
heightfunction on VisualClozeProcessor. The pipeline now calls the correct resizing utility (_resize_and_crop) during preprocessing.diffusers/src/diffusers/pipelines/visualcloze/visualcloze_utils.py
Lines 105 to 113 in f442955
Reproduction
@yiyixuxu@asomoza