re-fix sample generation is not working in FLUX1 split mode #1647

This commit is contained in:
Kohya S
2024-09-29 00:35:29 +09:00
parent 822fe57859
commit 1a0f5b0c38
2 changed files with 3 additions and 1 deletions

View File

@@ -196,7 +196,6 @@ def sample_image_inference(
tokens_and_masks = tokenize_strategy.tokenize(prompt)
# strategy has apply_t5_attn_mask option
encoded_text_encoder_conds = encoding_strategy.encode_tokens(tokenize_strategy, text_encoders, tokens_and_masks)
print([x.shape if x is not None else None for x in encoded_text_encoder_conds])
# if text_encoder_conds is not cached, use encoded_text_encoder_conds
if len(text_encoder_conds) == 0: