Use scale from vae

This commit is contained in:
Sergey Borisov 2023-07-20 18:54:51 +03:00
parent 29a590cced
commit 4a0774b260

View File

@ -764,7 +764,7 @@ class ImageToLatentsInvocation(BaseInvocation):
dtype=vae.dtype
) # FIXME: uses torch.randn. make reproducible!
latents = 0.18215 * latents
latents = vae.config.scaling_factor * latents
latents = latents.to(dtype=orig_dtype)
name = f"{context.graph_execution_state_id}__{self.id}"