I have an issue with trying to train sd3.5L when sampling during training, please help :(
Traceback (most recent call last):
File "C:\sd-scripts\sd3_train.py", line 1074, in <module>
train(args)
File "C:\sd-scripts\sd3_train.py", line 949, in train
sd3_train_utils.sample_images(
File "C:\sd-scripts\library\sd3_train_utils.py", line 429, in sample_images
sample_image_inference(
File "C:\sd-scripts\library\sd3_train_utils.py", line 550, in sample_image_inference
lg_out, t5_out, pooled, l_attn_mask, g_attn_mask, t5_attn_mask = encode_prompt(prompt)
^^^^^^^^^^^^^^^^^^^^^
File "C:\sd-scripts\library\sd3_train_utils.py", line 538, in encode_prompt
encoded_text_encoder_conds = encoding_strategy.encode_tokens(tokenize_strategy, text_encoders, tokens_and_masks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\sd-scripts\library\strategy_sd3.py", line 97, in encode_tokens
assert g_tokens is None, "g_tokens must be None if l_tokens is None"
^^^^^^^^^^^^^^^^
AssertionError: g_tokens must be None if l_tokens is None
I have an issue with trying to train sd3.5L when sampling during training, please help :(
Accelerate launch --mixed_precision bf16 --num_processes 1 --num_machines 1 --num_cpu_threads_per_process 2 C:/sd-scripts/sd3_train.py --config_file C:/train/test.toml
cfg:
ds: