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
642516a3
"tools/vscode:/vscode.git/clone" did not exist on "24757ba6bca0ec68b08321a322eefffae0c28345"
Commit
642516a3
authored
Feb 09, 2023
by
BazettFraga
Committed by
comfyanonymous
Feb 09, 2023
Browse files
create output dir if none is present
parent
773cdabf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
nodes.py
nodes.py
+3
-0
No files found.
nodes.py
View file @
642516a3
...
@@ -493,6 +493,9 @@ class SaveImage:
...
@@ -493,6 +493,9 @@ class SaveImage:
counter
=
max
(
filter
(
lambda
a
:
a
[
1
][:
-
1
]
==
filename_prefix
and
a
[
1
][
-
1
]
==
"_"
,
map
(
map_filename
,
os
.
listdir
(
self
.
output_dir
))))[
0
]
+
1
counter
=
max
(
filter
(
lambda
a
:
a
[
1
][:
-
1
]
==
filename_prefix
and
a
[
1
][
-
1
]
==
"_"
,
map
(
map_filename
,
os
.
listdir
(
self
.
output_dir
))))[
0
]
+
1
except
ValueError
:
except
ValueError
:
counter
=
1
counter
=
1
except
FileNotFoundError
:
os
.
mkdir
(
self
.
output_dir
)
counter
=
1
for
image
in
images
:
for
image
in
images
:
i
=
255.
*
image
.
cpu
().
numpy
()
i
=
255.
*
image
.
cpu
().
numpy
()
img
=
Image
.
fromarray
(
i
.
astype
(
np
.
uint8
))
img
=
Image
.
fromarray
(
i
.
astype
(
np
.
uint8
))
...
...
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