mirror of
https://github.com/vladmandic/automatic
synced 2026-09-11 07:18:44 +02:00
torch dynamic profiling
This commit is contained in:
@@ -109,7 +109,7 @@ def taesd_vae_encode(image):
|
||||
def vae_decode(latents, model, output_type='np', full_quality=True):
|
||||
t0 = time.time()
|
||||
prev_job = shared.state.job
|
||||
shared.state.job = 'vae'
|
||||
shared.state.job = 'VAE'
|
||||
if not torch.is_tensor(latents): # already decoded
|
||||
return latents
|
||||
if latents.shape[0] == 0:
|
||||
|
||||
Reference in New Issue
Block a user