mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
add sdxl support
This commit is contained in:
@@ -145,8 +145,12 @@ class EmbeddingDatabase:
|
||||
self.word_embeddings[name] = embedding
|
||||
except Exception:
|
||||
self.skipped_embeddings[name] = embedding
|
||||
text_inv_tokens = pipe.tokenizer.added_tokens_encoder.keys()
|
||||
text_inv_tokens = [t for t in text_inv_tokens if not (len(t.split("_")) > 1 and t.split("_")[-1].isdigit())]
|
||||
try:
|
||||
text_inv_tokens = pipe.tokenizer.added_tokens_encoder.keys()
|
||||
text_inv_tokens = [t for t in text_inv_tokens if not (len(t.split("_")) > 1 and t.split("_")[-1].isdigit())]
|
||||
except Exception:
|
||||
text_inv_tokens = []
|
||||
pass
|
||||
|
||||
def load_from_file(self, path, filename):
|
||||
name, ext = os.path.splitext(filename)
|
||||
|
||||
Reference in New Issue
Block a user