mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-15 00:43:30 +08:00
ruff
This commit is contained in:
parent
3a5346aa7e
commit
039bf96e8f
@ -64,7 +64,6 @@ class HunyuanImageTEModel(QwenImageTEModel):
|
|||||||
|
|
||||||
def encode_token_weights(self, token_weight_pairs):
|
def encode_token_weights(self, token_weight_pairs):
|
||||||
tok_pairs = token_weight_pairs["qwen25_7b"][0]
|
tok_pairs = token_weight_pairs["qwen25_7b"][0]
|
||||||
count_im_start = 0
|
|
||||||
template_end = -1
|
template_end = -1
|
||||||
if tok_pairs[0][0] == 27:
|
if tok_pairs[0][0] == 27:
|
||||||
if len(tok_pairs) > 36: # refiner prompt uses a fixed 36 template_end
|
if len(tok_pairs) > 36: # refiner prompt uses a fixed 36 template_end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user