mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-27 06:40:10 +08:00
remove noneed scale
This commit is contained in:
parent
6346d8eeaa
commit
073342c887
@ -75,7 +75,7 @@ def images_tensor_to_samples(image, approximation=None, model=None):
|
|||||||
|
|
||||||
if approximation == 3:
|
if approximation == 3:
|
||||||
image = image.to(devices.device, devices.dtype)
|
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:
|
else:
|
||||||
if model is None:
|
if model is None:
|
||||||
model = shared.sd_model
|
model = shared.sd_model
|
||||||
|
Loading…
Reference in New Issue
Block a user