mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
zimage-controlnet-union initial code
Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
@@ -156,8 +156,8 @@ def decode(latents):
|
||||
image = vae.decode(tensor, return_dict=False)[0]
|
||||
image = (image / 2.0 + 0.5).clamp(0, 1).detach()
|
||||
t1 = time.time()
|
||||
if (t1 - t0) > 1.0 and not first_run:
|
||||
shared.log.warning(f'Decode: type="taesd" variant="{variant}" time{t1 - t0:.2f}')
|
||||
if (t1 - t0) > 3.0 and not first_run:
|
||||
shared.log.warning(f'Decode: type="taesd" variant="{variant}" long decode time={t1 - t0:.2f}')
|
||||
first_run = False
|
||||
return image
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user