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
b5fa3d28
"doc/vscode:/vscode.git/clone" did not exist on "0c177c65216c1173864a41332c39fed5210af587"
Commit
b5fa3d28
authored
Oct 13, 2023
by
Jairo Correa
Browse files
Fix MaskComposite
parent
87097a11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
comfy_extras/nodes_mask.py
comfy_extras/nodes_mask.py
+2
-2
No files found.
comfy_extras/nodes_mask.py
View file @
b5fa3d28
...
...
@@ -240,8 +240,8 @@ class MaskComposite:
right
,
bottom
=
(
min
(
left
+
source
.
shape
[
-
1
],
destination
.
shape
[
-
1
]),
min
(
top
+
source
.
shape
[
-
2
],
destination
.
shape
[
-
2
]))
visible_width
,
visible_height
=
(
right
-
left
,
bottom
-
top
,)
source_portion
=
source
[:
visible_height
,
:
visible_width
]
destination_portion
=
destination
[
top
:
bottom
,
left
:
right
]
source_portion
=
source
[
:,
:
visible_height
,
:
visible_width
]
destination_portion
=
destination
[
:,
top
:
bottom
,
left
:
right
]
if
operation
==
"multiply"
:
output
[:,
top
:
bottom
,
left
:
right
]
=
destination_portion
*
source_portion
...
...
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