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
8bbd9815
Commit
8bbd9815
authored
May 19, 2023
by
comfyanonymous
Browse files
Support loading fp16 latent files.
parent
62a371e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nodes.py
nodes.py
+1
-1
No files found.
nodes.py
View file @
8bbd9815
...
@@ -305,7 +305,7 @@ class LoadLatent:
...
@@ -305,7 +305,7 @@ class LoadLatent:
def
load
(
self
,
latent
):
def
load
(
self
,
latent
):
latent_path
=
folder_paths
.
get_annotated_filepath
(
latent
)
latent_path
=
folder_paths
.
get_annotated_filepath
(
latent
)
latent
=
safetensors
.
torch
.
load_file
(
latent_path
,
device
=
"cpu"
)
latent
=
safetensors
.
torch
.
load_file
(
latent_path
,
device
=
"cpu"
)
samples
=
{
"samples"
:
latent
[
"latent_tensor"
]}
samples
=
{
"samples"
:
latent
[
"latent_tensor"
]
.
float
()
}
return
(
samples
,
)
return
(
samples
,
)
@
classmethod
@
classmethod
...
...
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