repair broken live previews if using VAE with half
This commit is contained in:
parent
06da34d47a
commit
aa42c0ff8e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue