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
6a10640f
"test/onnx/parse/depthtospace_test.cpp" did not exist on "d2532d0eee52c8e12d05990ce6a7c8bec6480df7"
Commit
6a10640f
authored
Jan 08, 2024
by
comfyanonymous
Browse files
Support properly loading images with mode I.
parent
c6951548
Changes
1
Show 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 @
6a10640f
...
...
@@ -1415,6 +1415,8 @@ class LoadImage:
output_masks
=
[]
for
i
in
ImageSequence
.
Iterator
(
img
):
i
=
ImageOps
.
exif_transpose
(
i
)
if
i
.
mode
==
'I'
:
i
=
i
.
point
(
lambda
i
:
i
*
(
1
/
255
))
image
=
i
.
convert
(
"RGB"
)
image
=
np
.
array
(
image
).
astype
(
np
.
float32
)
/
255.0
image
=
torch
.
from_numpy
(
image
)[
None
,]
...
...
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