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
87097a11
"vscode:/vscode.git/clone" did not exist on "3b6a2f176e3548b7d3e006988246084688f64219"
Commit
87097a11
authored
Oct 13, 2023
by
Jairo Correa
Browse files
Fix FeatherMask
parent
fee3b0c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
comfy_extras/nodes_mask.py
comfy_extras/nodes_mask.py
+4
-4
No files found.
comfy_extras/nodes_mask.py
View file @
87097a11
...
...
@@ -282,10 +282,10 @@ class FeatherMask:
def
feather
(
self
,
mask
,
left
,
top
,
right
,
bottom
):
output
=
mask
.
reshape
((
-
1
,
mask
.
shape
[
-
2
],
mask
.
shape
[
-
1
])).
clone
()
left
=
min
(
left
,
output
.
shape
[
1
])
right
=
min
(
right
,
output
.
shape
[
1
])
top
=
min
(
top
,
output
.
shape
[
0
])
bottom
=
min
(
bottom
,
output
.
shape
[
0
])
left
=
min
(
left
,
output
.
shape
[
-
1
])
right
=
min
(
right
,
output
.
shape
[
-
1
])
top
=
min
(
top
,
output
.
shape
[
-
2
])
bottom
=
min
(
bottom
,
output
.
shape
[
-
2
])
for
x
in
range
(
left
):
feather_rate
=
(
x
+
1.0
)
/
left
...
...
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