mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-10 15:00:23 +00:00
Merge pull request #641 from kaibioinfo/patch-1
fix typo in sdxl_train_textual_inversion
This commit is contained in:
@@ -103,8 +103,8 @@ class SdxlTextualInversionTrainer(train_textual_inversion.TextualInversionTraine
|
|||||||
else:
|
else:
|
||||||
data = torch.load(file, map_location="cpu")
|
data = torch.load(file, map_location="cpu")
|
||||||
|
|
||||||
emb_l = data.get("clib_l", None) # ViT-L text encoder 1
|
emb_l = data.get("clip_l", None) # ViT-L text encoder 1
|
||||||
emb_g = data.get("clib_g", None) # BiG-G text encoder 2
|
emb_g = data.get("clip_g", None) # BiG-G text encoder 2
|
||||||
|
|
||||||
assert (
|
assert (
|
||||||
emb_l is not None or emb_g is not None
|
emb_l is not None or emb_g is not None
|
||||||
|
|||||||
Reference in New Issue
Block a user