You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Model expects an added time embedding vector of length {expected_add_embed_dim}, but a vector of {passed_add_embed_dim} was created. The model has an incorrect config. Please check `unet.config.time_embedding_type` and `text_encoder_2.config.projection_dim`."
"`upcast_vae` is deprecated. Please use `pipe.vae.to(torch.float32)`. For more details, please refer to: https://github.com/huggingface/diffusers/pull/12619#issue-3606633695.",
335
-
)
336
-
self.vae.to(dtype=torch.float32)
337
-
338
-
# Copied from diffusers.pipelines.latent_consistency_models.pipeline_latent_consistency_text2img.LatentConsistencyModelPipeline.get_guidance_scale_embedding
"`upcast_vae` is deprecated. Please use `pipe.vae.to(torch.float32)`. For more details, please refer to: https://github.com/huggingface/diffusers/pull/12619#issue-3606633695.",
401
399
)
402
-
# if xformers or torch_2_0 is used attention block does not need
403
-
# to be in float32 which can save lots of memory
404
-
ifuse_torch_2_0_or_xformers:
405
-
self.vae.post_quant_conv.to(dtype)
406
-
self.vae.decoder.conv_in.to(dtype)
407
-
self.vae.decoder.mid_block.to(dtype)
400
+
self.vae.to(dtype=torch.float32)
408
401
409
402
# Copied from diffusers.pipelines.latent_consistency_models.pipeline_latent_consistency_text2img.LatentConsistencyModelPipeline.get_guidance_scale_embedding
0 commit comments