We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6225a78 commit cf4418bCopy full SHA for cf4418b
comfy/text_encoders/hydit.py
@@ -14,7 +14,7 @@ def __init__(self, device="cpu", layer="last", layer_idx=None, dtype=None):
14
class HyditBertTokenizer(sd1_clip.SDTokenizer):
15
def __init__(self, embedding_directory=None, tokenizer_data={}):
16
tokenizer_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "hydit_clip_tokenizer")
17
- super().__init__(tokenizer_path, pad_with_end=False, embedding_size=1024, embedding_key='chinese_roberta', tokenizer_class=BertTokenizer)
+ super().__init__(tokenizer_path, pad_with_end=False, embedding_size=1024, embedding_key='chinese_roberta', tokenizer_class=BertTokenizer, pad_to_max_length=False, max_length=512, min_length=77)
18
19
20
class MT5XLModel(sd1_clip.SDClipModel):
0 commit comments