1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Fix AttributeError of VisualClozeProcessor (#12121)

Co-authored-by: YiYi Xu <yixu310@gmail.com>
This commit is contained in:
Justin Ruan
2025-09-11 06:47:34 +08:00
committed by GitHub
parent eb7ef26736
commit 55f0b3d758

View File

@@ -110,7 +110,7 @@ class VisualClozeProcessor(VaeImageProcessor):
new_h = int(processed_images[i][j].height * (new_w / processed_images[i][j].width))
new_w = int(new_w / 16) * 16
new_h = int(new_h / 16) * 16
processed_images[i][j] = self.height(processed_images[i][j], new_h, new_w)
processed_images[i][j] = self._resize_and_crop(processed_images[i][j], new_h, new_w)
# Convert to tensors and normalize
image_sizes = []