Temporary force set vae to same precision as unet

This commit is contained in:
Sergey Borisov 2023-08-10 23:17:09 +03:00 committed by Kent Keirsey
parent d0fee93aac
commit 2ef6a8995b

View File

@ -181,6 +181,8 @@ class InpaintInvocation(BaseInvocation):
device = context.services.model_manager.mgr.cache.execution_device
dtype = context.services.model_manager.mgr.cache.precision
vae.to(dtype=unet.dtype)
pipeline = StableDiffusionGeneratorPipeline(
vae=vae,
text_encoder=None,