Open
Description
When using the sd2.0 model, SD2Tokenizer.clip_name = "h", #L266 will report an error when executing adv_encode.py. Fix bug using the follow code:
if 'h' in tokenized:
return advanced_encode_from_tokens(tokenized['h'],
token_normalization,
weight_interpretation,
lambda x: (clip.encode_from_tokens({'h': x}), None),
w_max=w_max)
else:
return advanced_encode_from_tokens(tokenized['l'],
token_normalization,
weight_interpretation,
lambda x: (clip.encode_from_tokens({'l': x}), None),
w_max=w_max)
Metadata
Metadata
Assignees
Labels
No labels