Fixed minor bug
when unloading vae during TI training, generating images after training will error out
This commit is contained in:
parent
3b0127e698
commit
890e68aaf7
|
@ -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')
|
filename = os.path.join(shared.cmd_opts.embeddings_dir, f'{embedding_name}.pt')
|
||||||
save_embedding(embedding, checkpoint, embedding_name, filename, remove_cached_checksum=True)
|
save_embedding(embedding, checkpoint, embedding_name, filename, remove_cached_checksum=True)
|
||||||
|
shared.sd_model.first_stage_model.to(devices.device)
|
||||||
|
|
||||||
return embedding, filename
|
return embedding, filename
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue