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
chenpangpang
ComfyUI
Commits
314e526c
"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "947e786c0a924e07b02d06c868dfe08b790f4787"
Commit
314e526c
authored
May 09, 2023
by
comfyanonymous
Browse files
Not needed anymore because sampling works with any latent size.
parent
d43e45ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
comfy/samplers.py
comfy/samplers.py
+2
-13
No files found.
comfy/samplers.py
View file @
314e526c
...
...
@@ -362,19 +362,8 @@ def resolve_cond_masks(conditions, h, w, device):
else
:
box
=
boxes
[
0
]
H
,
W
,
Y
,
X
=
(
box
[
3
]
-
box
[
1
]
+
1
,
box
[
2
]
-
box
[
0
]
+
1
,
box
[
1
],
box
[
0
])
# Make sure the height and width are divisible by 8
if
X
%
8
!=
0
:
newx
=
X
//
8
*
8
W
=
W
+
(
X
-
newx
)
X
=
newx
if
Y
%
8
!=
0
:
newy
=
Y
//
8
*
8
H
=
H
+
(
Y
-
newy
)
Y
=
newy
if
H
%
8
!=
0
:
H
=
H
+
(
8
-
(
H
%
8
))
if
W
%
8
!=
0
:
W
=
W
+
(
8
-
(
W
%
8
))
H
=
max
(
8
,
H
)
W
=
max
(
8
,
W
)
area
=
(
int
(
H
),
int
(
W
),
int
(
Y
),
int
(
X
))
modified
[
'area'
]
=
area
...
...
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