mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-14 13:37:01 +08:00
Update latent_preview.py
This commit is contained in:
parent
420000d608
commit
39c318ee21
@ -144,9 +144,12 @@ def prepare_callback(model, steps, x0_output_dict=None):
|
|||||||
if previewer:
|
if previewer:
|
||||||
preview_bytes = previewer.decode_latent_to_preview_image(preview_format, x0)
|
preview_bytes = previewer.decode_latent_to_preview_image(preview_format, x0)
|
||||||
pbar.update_absolute(step + 1, total_steps, preview_bytes)
|
pbar.update_absolute(step + 1, total_steps, preview_bytes)
|
||||||
if args.xla or args.xla_fsdp:
|
|
||||||
|
if args.xla or args.xla_spmd:
|
||||||
import torch_xla as xla
|
import torch_xla as xla
|
||||||
|
|
||||||
xla.sync()
|
xla.sync()
|
||||||
|
|
||||||
|
pbar.update_absolute(step + 1, total_steps, preview_bytes)
|
||||||
|
|
||||||
return callback
|
return callback
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user