This commit is contained in:
comfyanonymous 2025-09-26 18:22:54 -04:00 committed by GitHub
parent 3a5346aa7e
commit 039bf96e8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,6 @@ class HunyuanImageTEModel(QwenImageTEModel):
def encode_token_weights(self, token_weight_pairs):
tok_pairs = token_weight_pairs["qwen25_7b"][0]
count_im_start = 0
template_end = -1
if tok_pairs[0][0] == 27:
if len(tok_pairs) > 36: # refiner prompt uses a fixed 36 template_end