validate textual inversion embeddings

This commit is contained in:
Vladimir Mandic
2022-12-31 11:27:02 -05:00
committed by GitHub
parent f34c734172
commit f55ac33d44
3 changed files with 41 additions and 7 deletions

View File

@@ -325,6 +325,9 @@ def load_model(checkpoint_info=None):
script_callbacks.model_loaded_callback(sd_model)
print("Model loaded.")
sd_hijack.model_hijack.embedding_db.load_textual_inversion_embeddings(force_reload = True) # Reload embeddings after model load as they may or may not fit the model
return sd_model