We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58d2b10 commit 0c71189Copy full SHA for 0c71189
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
@@ -1034,7 +1034,8 @@ def __call__(
1034
1035
# expand the latents if we are doing classifier free guidance
1036
latent_model_input = torch.cat([latents] * 2) if self.do_classifier_free_guidance else latents
1037
- latent_model_input = self.scheduler.scale_model_input(latent_model_input, t)
+ if hasattr(self.scheduler, "scale_model_input"):
1038
+ latent_model_input = self.scheduler.scale_model_input(latent_model_input, t)
1039
1040
# predict the noise residual
1041
noise_pred = self.unet(
0 commit comments