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
3dcad78f
"scripts/vscode:/vscode.git/clone" did not exist on "f65c13b5595a8437b23b716a3d0f76657e15df14"
Commit
3dcad78f
authored
Jul 30, 2023
by
FuamiCake
Browse files
SaveLatent reports its outputs so they are visible to API
parent
3cd31d0e
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 @
3dcad78f
...
...
@@ -362,6 +362,14 @@ class SaveLatent:
metadata
[
x
]
=
json
.
dumps
(
extra_pnginfo
[
x
])
file
=
f
"
{
filename
}
_
{
counter
:
05
}
_.latent"
results
=
list
()
results
.
append
({
"filename"
:
file
,
"subfolder"
:
subfolder
,
"type"
:
"output"
})
file
=
os
.
path
.
join
(
full_output_folder
,
file
)
output
=
{}
...
...
@@ -369,7 +377,7 @@ class SaveLatent:
output
[
"latent_format_version_0"
]
=
torch
.
tensor
([])
comfy
.
utils
.
save_torch_file
(
output
,
file
,
metadata
=
metadata
)
return
{}
return
{
"ui"
:
{
"latents"
:
results
}
}
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