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
3f46362d
"ppocr/git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "07b6d635220e41dcb8618b2748ca6911d20a4777"
Unverified
Commit
3f46362d
authored
Jul 02, 2024
by
Alex "mcmonkey" Goodwin
Committed by
GitHub
Jul 02, 2024
Browse files
fix non-contiguous tensor saving (from channels-last) (#3932)
parent
01991f72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
comfy/sd.py
comfy/sd.py
+2
-0
No files found.
comfy/sd.py
View file @
3f46362d
...
@@ -627,5 +627,7 @@ def save_checkpoint(output_path, model, clip=None, vae=None, clip_vision=None, m
...
@@ -627,5 +627,7 @@ def save_checkpoint(output_path, model, clip=None, vae=None, clip_vision=None, m
sd
=
model
.
model
.
state_dict_for_saving
(
clip_sd
,
vae
.
get_sd
(),
clip_vision_sd
)
sd
=
model
.
model
.
state_dict_for_saving
(
clip_sd
,
vae
.
get_sd
(),
clip_vision_sd
)
for
k
in
extra_keys
:
for
k
in
extra_keys
:
sd
[
k
]
=
extra_keys
[
k
]
sd
[
k
]
=
extra_keys
[
k
]
for
k
in
sd
:
sd
[
k
]
=
sd
[
k
].
contiguous
()
comfy
.
utils
.
save_torch_file
(
sd
,
output_path
,
metadata
=
metadata
)
comfy
.
utils
.
save_torch_file
(
sd
,
output_path
,
metadata
=
metadata
)
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