Skip to content

Commit

Permalink
fix an issue in live previews that happens when you use SDXL with fp1…
Browse files Browse the repository at this point in the history
…6 VAE
  • Loading branch information
AUTOMATIC1111 committed Jul 15, 2023
1 parent 5dee0fa commit 14cf434
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,7 @@ def create_random_tensors(shape, seeds, subseeds=None, subseed_strength=0.0, see


def decode_first_stage(model, x):
with devices.autocast(disable=x.dtype == devices.dtype_vae):
x = model.decode_first_stage(x)
x = model.decode_first_stage(x.to(devices.dtype_vae))

return x

Expand Down

0 comments on commit 14cf434

Please sign in to comment.