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
a82fae23
Commit
a82fae23
authored
Jun 10, 2024
by
comfyanonymous
Browse files
Fix bug with cosxl edit model.
parent
8c4a9bef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
comfy/conds.py
comfy/conds.py
+6
-1
No files found.
comfy/conds.py
View file @
a82fae23
...
@@ -29,7 +29,12 @@ class CONDRegular:
...
@@ -29,7 +29,12 @@ class CONDRegular:
class
CONDNoiseShape
(
CONDRegular
):
class
CONDNoiseShape
(
CONDRegular
):
def
process_cond
(
self
,
batch_size
,
device
,
area
,
**
kwargs
):
def
process_cond
(
self
,
batch_size
,
device
,
area
,
**
kwargs
):
data
=
self
.
cond
[:,:,
area
[
2
]:
area
[
0
]
+
area
[
2
],
area
[
3
]:
area
[
1
]
+
area
[
3
]]
data
=
self
.
cond
if
area
is
not
None
:
dims
=
len
(
area
)
//
2
for
i
in
range
(
dims
):
data
=
data
.
narrow
(
i
+
2
,
area
[
i
+
dims
],
area
[
i
])
return
self
.
_copy_with
(
comfy
.
utils
.
repeat_to_batch_size
(
data
,
batch_size
).
to
(
device
))
return
self
.
_copy_with
(
comfy
.
utils
.
repeat_to_batch_size
(
data
,
batch_size
).
to
(
device
))
...
...
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