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
41cf43f8
Commit
41cf43f8
authored
Jul 31, 2023
by
comfyanonymous
Browse files
Merge branch 'SaveLatent_outputs' of
https://github.com/fuami/ComfyUI
parents
4a77fcd6
3dcad78f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
nodes.py
nodes.py
+9
-1
No files found.
nodes.py
View file @
41cf43f8
...
@@ -362,6 +362,14 @@ class SaveLatent:
...
@@ -362,6 +362,14 @@ class SaveLatent:
metadata
[
x
]
=
json
.
dumps
(
extra_pnginfo
[
x
])
metadata
[
x
]
=
json
.
dumps
(
extra_pnginfo
[
x
])
file
=
f
"
{
filename
}
_
{
counter
:
05
}
_.latent"
file
=
f
"
{
filename
}
_
{
counter
:
05
}
_.latent"
results
=
list
()
results
.
append
({
"filename"
:
file
,
"subfolder"
:
subfolder
,
"type"
:
"output"
})
file
=
os
.
path
.
join
(
full_output_folder
,
file
)
file
=
os
.
path
.
join
(
full_output_folder
,
file
)
output
=
{}
output
=
{}
...
@@ -369,7 +377,7 @@ class SaveLatent:
...
@@ -369,7 +377,7 @@ class SaveLatent:
output
[
"latent_format_version_0"
]
=
torch
.
tensor
([])
output
[
"latent_format_version_0"
]
=
torch
.
tensor
([])
comfy
.
utils
.
save_torch_file
(
output
,
file
,
metadata
=
metadata
)
comfy
.
utils
.
save_torch_file
(
output
,
file
,
metadata
=
metadata
)
return
{}
return
{
"ui"
:
{
"latents"
:
results
}
}
class
LoadLatent
:
class
LoadLatent
:
...
...
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