mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
fix errors in SD3 LoRA training with Text Encoders close #1724
This commit is contained in:
@@ -134,7 +134,7 @@ class Sd3NetworkTrainer(train_network.NetworkTrainer):
|
||||
def get_models_for_text_encoding(self, args, accelerator, text_encoders):
|
||||
if args.cache_text_encoder_outputs:
|
||||
if self.train_clip and not self.train_t5xxl:
|
||||
return text_encoders[0:2] # only CLIP-L/CLIP-G is needed for encoding because T5XXL is cached
|
||||
return text_encoders[0:2] + [None] # only CLIP-L/CLIP-G is needed for encoding because T5XXL is cached
|
||||
else:
|
||||
return None # no text encoders are needed for encoding because both are cached
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user