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
b3b5ddb0
"...git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "2735e9e3c9bd68540e6e337a6379a2a35bd2c9f9"
Commit
b3b5ddb0
authored
Jan 08, 2024
by
comfyanonymous
Browse files
Support I mode images in LoadImageMask.
parent
2d74fc43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
nodes.py
nodes.py
+2
-0
No files found.
nodes.py
View file @
b3b5ddb0
...
@@ -1472,6 +1472,8 @@ class LoadImageMask:
...
@@ -1472,6 +1472,8 @@ class LoadImageMask:
i
=
Image
.
open
(
image_path
)
i
=
Image
.
open
(
image_path
)
i
=
ImageOps
.
exif_transpose
(
i
)
i
=
ImageOps
.
exif_transpose
(
i
)
if
i
.
getbands
()
!=
(
"R"
,
"G"
,
"B"
,
"A"
):
if
i
.
getbands
()
!=
(
"R"
,
"G"
,
"B"
,
"A"
):
if
i
.
mode
==
'I'
:
i
=
i
.
point
(
lambda
i
:
i
*
(
1
/
255
))
i
=
i
.
convert
(
"RGBA"
)
i
=
i
.
convert
(
"RGBA"
)
mask
=
None
mask
=
None
c
=
channel
[
0
].
upper
()
c
=
channel
[
0
].
upper
()
...
...
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