mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-06 13:47:06 +00:00
fix typo in sdxl_train_textual_inversion
bug appears when continue training on an existing TI
This commit is contained in:
@@ -115,8 +115,8 @@ class SdxlTextualInversionTrainer(train_textual_inversion.TextualInversionTraine
|
||||
else:
|
||||
data = torch.load(file, map_location="cpu")
|
||||
|
||||
emb_l = data.get("clib_l", None) # ViT-L text encoder 1
|
||||
emb_g = data.get("clib_g", None) # BiG-G text encoder 2
|
||||
emb_l = data.get("clip_l", None) # ViT-L text encoder 1
|
||||
emb_g = data.get("clip_g", None) # BiG-G text encoder 2
|
||||
|
||||
assert (
|
||||
emb_l is not None or emb_g is not None
|
||||
|
||||
Reference in New Issue
Block a user