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
b4b21be7
Commit
b4b21be7
authored
Mar 19, 2023
by
comfyanonymous
Browse files
Fix area composition feathering not working properly.
parent
07dab962
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
comfy/samplers.py
comfy/samplers.py
+4
-4
No files found.
comfy/samplers.py
View file @
b4b21be7
...
@@ -41,16 +41,16 @@ def sampling_function(model_function, x, timestep, uncond, cond, cond_scale, con
...
@@ -41,16 +41,16 @@ def sampling_function(model_function, x, timestep, uncond, cond, cond_scale, con
rr
=
8
rr
=
8
if
area
[
2
]
!=
0
:
if
area
[
2
]
!=
0
:
for
t
in
range
(
rr
):
for
t
in
range
(
rr
):
mult
[:,:,
area
[
2
]
+
t
:
area
[
2
]
+
1
+
t
,:]
*=
((
1.0
/
rr
)
*
(
t
+
1
))
mult
[:,:,
t
:
1
+
t
,:]
*=
((
1.0
/
rr
)
*
(
t
+
1
))
if
(
area
[
0
]
+
area
[
2
])
<
x_in
.
shape
[
2
]:
if
(
area
[
0
]
+
area
[
2
])
<
x_in
.
shape
[
2
]:
for
t
in
range
(
rr
):
for
t
in
range
(
rr
):
mult
[:,:,
area
[
0
]
+
area
[
2
]
-
1
-
t
:
area
[
0
]
+
area
[
2
]
-
t
,:]
*=
((
1.0
/
rr
)
*
(
t
+
1
))
mult
[:,:,
area
[
0
]
-
1
-
t
:
area
[
0
]
-
t
,:]
*=
((
1.0
/
rr
)
*
(
t
+
1
))
if
area
[
3
]
!=
0
:
if
area
[
3
]
!=
0
:
for
t
in
range
(
rr
):
for
t
in
range
(
rr
):
mult
[:,:,:,
area
[
3
]
+
t
:
area
[
3
]
+
1
+
t
]
*=
((
1.0
/
rr
)
*
(
t
+
1
))
mult
[:,:,:,
t
:
1
+
t
]
*=
((
1.0
/
rr
)
*
(
t
+
1
))
if
(
area
[
1
]
+
area
[
3
])
<
x_in
.
shape
[
3
]:
if
(
area
[
1
]
+
area
[
3
])
<
x_in
.
shape
[
3
]:
for
t
in
range
(
rr
):
for
t
in
range
(
rr
):
mult
[:,:,:,
area
[
1
]
+
area
[
3
]
-
1
-
t
:
area
[
1
]
+
area
[
3
]
-
t
]
*=
((
1.0
/
rr
)
*
(
t
+
1
))
mult
[:,:,:,
area
[
1
]
-
1
-
t
:
area
[
1
]
-
t
]
*=
((
1.0
/
rr
)
*
(
t
+
1
))
conditionning
=
{}
conditionning
=
{}
conditionning
[
'c_crossattn'
]
=
cond
[
0
]
conditionning
[
'c_crossattn'
]
=
cond
[
0
]
if
cond_concat_in
is
not
None
and
len
(
cond_concat_in
)
>
0
:
if
cond_concat_in
is
not
None
and
len
(
cond_concat_in
)
>
0
:
...
...
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