Skip to content

Commit 55f0b3d

Browse files
Fix AttributeError of VisualClozeProcessor (huggingface#12121)
Co-authored-by: YiYi Xu <[email protected]>
1 parent eb7ef26 commit 55f0b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/visualcloze/visualcloze_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def preprocess_image(
110110
new_h = int(processed_images[i][j].height * (new_w / processed_images[i][j].width))
111111
new_w = int(new_w / 16) * 16
112112
new_h = int(new_h / 16) * 16
113-
processed_images[i][j] = self.height(processed_images[i][j], new_h, new_w)
113+
processed_images[i][j] = self._resize_and_crop(processed_images[i][j], new_h, new_w)
114114

115115
# Convert to tensors and normalize
116116
image_sizes = []

0 commit comments

Comments
 (0)