This commit is contained in:
lllyasviel
2024-01-25 08:13:17 -08:00
parent 1c19f8f303
commit 5cfad82bea
2 changed files with 7 additions and 1 deletions

View File

@@ -92,7 +92,6 @@ def images_tensor_to_samples(image, approximation=None, model=None):
else:
if model is None:
model = shared.sd_model
model.first_stage_model.to(devices.dtype_vae)
image = image.to(shared.device, dtype=devices.dtype_vae)
image = image * 2 - 1