Commit aa42c0ff authored by AUTOMATIC1111's avatar AUTOMATIC1111

repair broken live previews if using VAE with half

parent 06da34d4
......@@ -39,7 +39,7 @@ def samples_to_images_tensor(sample, approximation=None, model=None):
else:
if model is None:
model = shared.sd_model
x_sample = model.decode_first_stage(sample)
x_sample = model.decode_first_stage(sample.to(model.first_stage_model.dtype))
return x_sample
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment