zimage-controlnet-union initial code

Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
vladmandic
2025-12-24 10:42:42 +01:00
parent c0141de02d
commit fab224c4df
4 changed files with 36 additions and 3 deletions
+2 -2
View File
@@ -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: