1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

[chore] remove torch.save from remnant code. (#12717)

remove torch.save from remnant code.
This commit is contained in:
Sayak Paul
2025-11-27 13:04:09 +05:30
committed by GitHub
parent e6d4612309
commit 6bf668c4d2

View File

@@ -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)