Spaces:
Running
on
Zero
Running
on
Zero
Update custom_pipeline.py
Browse files- custom_pipeline.py +1 -1
custom_pipeline.py
CHANGED
@@ -152,10 +152,10 @@ class FLUXPipelineWithIntermediateOutputs(FluxPipeline):
|
|
152 |
|
153 |
# Yield intermediate result
|
154 |
latents = self.scheduler.step(noise_pred, t, latents, return_dict=False)[0]
|
155 |
-
yield self._decode_latents_to_image(latents, height, width, output_type)
|
156 |
torch.cuda.empty_cache()
|
157 |
|
158 |
# Final image
|
|
|
159 |
self.maybe_free_model_hooks()
|
160 |
torch.cuda.empty_cache()
|
161 |
|
|
|
152 |
|
153 |
# Yield intermediate result
|
154 |
latents = self.scheduler.step(noise_pred, t, latents, return_dict=False)[0]
|
|
|
155 |
torch.cuda.empty_cache()
|
156 |
|
157 |
# Final image
|
158 |
+
yield self._decode_latents_to_image(latents, height, width, output_type)
|
159 |
self.maybe_free_model_hooks()
|
160 |
torch.cuda.empty_cache()
|
161 |
|