mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-10 15:00:23 +00:00
fix: skip LoRA creation for None text encoders (CLIP-L for Chroma)
This commit is contained in:
@@ -892,6 +892,9 @@ class LoRANetwork(torch.nn.Module):
|
||||
skipped_te = []
|
||||
for i, text_encoder in enumerate(text_encoders):
|
||||
index = i
|
||||
if text_encoder is None:
|
||||
logger.info(f"Text Encoder {index+1} is None, skipping LoRA creation for this encoder.")
|
||||
continue
|
||||
if not train_t5xxl and index > 0: # 0: CLIP, 1: T5XXL, so we skip T5XXL if train_t5xxl is False
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user