Spaces:
Running
on
Zero
Running
on
Zero
Update pipeline.py
Browse files- pipeline.py +1 -3
pipeline.py
CHANGED
@@ -640,10 +640,8 @@ class FluxWithCFGPipeline(DiffusionPipeline, FluxLoraLoaderMixin, FromSingleFile
|
|
640 |
)[0]
|
641 |
|
642 |
if self.do_classifier_free_guidance:
|
643 |
-
noise_pred_uncond, noise_pred_text = noise_pred.chunk(2)
|
644 |
noise_pred = noise_pred_uncond + self._guidance_scale * (noise_pred_text - noise_pred_uncond)
|
645 |
-
|
646 |
-
|
647 |
# compute the previous noisy sample x_t -> x_t-1
|
648 |
latents_dtype = latents.dtype
|
649 |
latents = self.scheduler.step(noise_pred, t, latents, return_dict=False)[0]
|
|
|
640 |
)[0]
|
641 |
|
642 |
if self.do_classifier_free_guidance:
|
|
|
643 |
noise_pred = noise_pred_uncond + self._guidance_scale * (noise_pred_text - noise_pred_uncond)
|
644 |
+
|
|
|
645 |
# compute the previous noisy sample x_t -> x_t-1
|
646 |
latents_dtype = latents.dtype
|
647 |
latents = self.scheduler.step(noise_pred, t, latents, return_dict=False)[0]
|