Fixed minor bug

when unloading vae during TI training, generating images after
training will error out
This commit is contained in:
Fampai 2022-10-31 10:07:12 -04:00
parent 3b0127e698
commit 890e68aaf7

View File

@ -409,6 +409,7 @@ Last saved image: {html.escape(last_saved_image)}<br/>
filename = os.path.join(shared.cmd_opts.embeddings_dir, f'{embedding_name}.pt')
save_embedding(embedding, checkpoint, embedding_name, filename, remove_cached_checksum=True)
shared.sd_model.first_stage_model.to(devices.device)
return embedding, filename