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
51583164
Commit
51583164
authored
May 10, 2023
by
comfyanonymous
Browse files
Make MaskToImage support masks with a batch size.
parent
8e3d1cbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy_extras/nodes_mask.py
comfy_extras/nodes_mask.py
+1
-1
No files found.
comfy_extras/nodes_mask.py
View file @
51583164
...
@@ -72,7 +72,7 @@ class MaskToImage:
...
@@ -72,7 +72,7 @@ class MaskToImage:
FUNCTION
=
"mask_to_image"
FUNCTION
=
"mask_to_image"
def
mask_to_image
(
self
,
mask
):
def
mask_to_image
(
self
,
mask
):
result
=
mask
[
None
,
:
,
:,
None
]
.
expand
(
-
1
,
-
1
,
-
1
,
3
)
result
=
mask
.
reshape
((
-
1
,
1
,
mask
.
shape
[
-
2
],
mask
.
shape
[
-
1
])).
movedim
(
1
,
-
1
)
.
expand
(
-
1
,
-
1
,
-
1
,
3
)
return
(
result
,)
return
(
result
,)
class
ImageToMask
:
class
ImageToMask
:
...
...
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