Unverified Commit 55f0b3d7 authored by Justin Ruan's avatar Justin Ruan Committed by GitHub
Browse files

Fix AttributeError of `VisualClozeProcessor` (#12121)


Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
parent eb7ef267
...@@ -110,7 +110,7 @@ class VisualClozeProcessor(VaeImageProcessor): ...@@ -110,7 +110,7 @@ class VisualClozeProcessor(VaeImageProcessor):
new_h = int(processed_images[i][j].height * (new_w / processed_images[i][j].width)) new_h = int(processed_images[i][j].height * (new_w / processed_images[i][j].width))
new_w = int(new_w / 16) * 16 new_w = int(new_w / 16) * 16
new_h = int(new_h / 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 # Convert to tensors and normalize
image_sizes = [] image_sizes = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment