Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
55f0b3d7
Unverified
Commit
55f0b3d7
authored
Sep 11, 2025
by
Justin Ruan
Committed by
GitHub
Sep 11, 2025
Browse files
Fix AttributeError of `VisualClozeProcessor` (#12121)
Co-authored-by:
YiYi Xu
<
yixu310@gmail.com
>
parent
eb7ef267
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/visualcloze/visualcloze_utils.py
src/diffusers/pipelines/visualcloze/visualcloze_utils.py
+1
-1
No files found.
src/diffusers/pipelines/visualcloze/visualcloze_utils.py
View file @
55f0b3d7
...
...
@@ -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
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment