mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
change all encode
This commit is contained in:
parent
1f6bfdea80
commit
094c416a80
5 changed files with 12 additions and 9 deletions
|
|
@ -75,7 +75,7 @@ def images_tensor_to_samples(image, approximation=None, model=None):
|
|||
|
||||
if approximation == 3:
|
||||
image = image.to(devices.device, devices.dtype)
|
||||
x_latent = sd_vae_taesd.encoder_model()(image) / 1.5
|
||||
x_latent = sd_vae_taesd.encoder_model()(image)
|
||||
else:
|
||||
if model is None:
|
||||
model = shared.sd_model
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue