@@ -253,6 +253,10 @@ class PixArtT5FromSD3CLIP:
|
|||||||
tmp.t5xxl.special_tokens = copy.deepcopy(clip.cond_stage_model.t5xxl.special_tokens)
|
tmp.t5xxl.special_tokens = copy.deepcopy(clip.cond_stage_model.t5xxl.special_tokens)
|
||||||
tmp.t5xxl.special_tokens.pop("end") # make sure empty tokens match
|
tmp.t5xxl.special_tokens.pop("end") # make sure empty tokens match
|
||||||
|
|
||||||
|
# add attn mask opt if present in original
|
||||||
|
if hasattr(sd3_clip.cond_stage_model, "t5_attention_mask"):
|
||||||
|
tmp.t5_attention_mask = False
|
||||||
|
|
||||||
# tokenizer
|
# tokenizer
|
||||||
tok = SD3Tokenizer()
|
tok = SD3Tokenizer()
|
||||||
tok.t5xxl.min_length = padding
|
tok.t5xxl.min_length = padding
|
||||||
|
|||||||
Reference in New Issue
Block a user