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
renzhc
diffusers_dcu
Commits
6bf668c4
Unverified
Commit
6bf668c4
authored
Nov 27, 2025
by
Sayak Paul
Committed by
GitHub
Nov 27, 2025
Browse files
[chore] remove torch.save from remnant code. (#12717)
remove torch.save from remnant code.
parent
e6d46123
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
src/diffusers/pipelines/flux2/pipeline_flux2.py
src/diffusers/pipelines/flux2/pipeline_flux2.py
+0
-1
No files found.
src/diffusers/pipelines/flux2/pipeline_flux2.py
View file @
6bf668c4
...
...
@@ -861,7 +861,6 @@ class Flux2Pipeline(DiffusionPipeline, Flux2LoraLoaderMixin):
if
output_type
==
"latent"
:
image
=
latents
else
:
torch
.
save
({
"pred"
:
latents
},
"pred_d.pt"
)
latents
=
self
.
_unpack_latents_with_ids
(
latents
,
latent_ids
)
latents_bn_mean
=
self
.
vae
.
bn
.
running_mean
.
view
(
1
,
-
1
,
1
,
1
).
to
(
latents
.
device
,
latents
.
dtype
)
...
...
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