yolain / ComfyUI-Easy-Use

In order to make it easier to use the ComfyUI, I have made some optimizations and integrations to some commonly used nodes.
GNU General Public License v3.0
878 stars 56 forks source link

使用简易加载器A11111报错 #282

Open ShionCox opened 1 month ago

ShionCox commented 1 month ago

Error occurred when executing easy a1111Loader:

tuple index out of range

File "E:\ComfyUI_Max\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI-Easy-Use\py\easyNodes.py", line 1026, in a1111loader return super().adv_pipeloader(ckpt_name, 'Default', vae_name, clip_skip, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI-Easy-Use\py\easyNodes.py", line 937, in adv_pipeloader positive_embeddings_final, positive_wildcard_prompt, model, clip = prompt_to_cond('positive', model, clip, clip_skip, lora_stack, positive, positive_token_normalization, positive_weight_interpretation, a1111_prompt_style, my_unique_id, prompt, easyCache, model_type=model_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI-Easy-Use\py\libs\conditioning.py", line 33, in prompt_to_cond return (advanced_encode(clipped, text, prompt_token_normalization, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI-Easy-Use\py\libs\adv_encode.py", line 285, in advanced_encode embeddings_final, = cls().encode(clip, text, weight_interpretation, True, True, False, False, 6, 1024, 1024, 0, 0, 1024, 1024, '', '', steps) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI_smZNodes\nodes.py", line 87, in encode result = run(params) ^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 754, in run cond, pooled = clip_clone.encode_from_tokens(tokens, True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\comfy\sd.py", line 115, in encode_from_tokens o = self.cond_stage_model.encode_token_weights(tokens) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 442, in encode_token_weights if multi: schedules = prompt_parser.get_multicond_learned_conditioning(model_hijack.cond_stage_model, texts, steps, None, opts.use_old_scheduling) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI_smZNodes\modules\prompt_parser.py", line 270, in get_multicond_learned_conditioning learned_conditioning = get_learned_conditioning(model, prompt_flat_list, steps, hires_steps, use_old_scheduling) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI_smZNodes\modules\prompt_parser.py", line 198, in get_learned_conditioning conds = model.forward(texts) ^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI_smZNodes\modules\sd_hijack_clip.py", line 224, in forward z = self.process_tokens(tokens, multipliers, multipliers_solo_emb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI_smZNodes\modules\sd_hijack_clip.py", line 254, in process_tokens z = self.encode_with_transformers(tokens) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 223, in encode_with_transformers return self.encode_with_transformerscomfy(tokens, return_pooled) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 124, in encode_with_transformerscomfy z, pooled = ClipTextEncoderCustom._forward(self.wrapped, tokens_orig) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 113, in _forward z, pooled_output = self.forward(tokens) ^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\comfy\sd1_clip.py", line 181, in forward tokens = self.set_up_textual_embeddings(tokens, backup_embeds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Max\ComfyUI\comfy\sd1_clip.py", line 153, in set_up_textual_embeddings if y.shape[0] == current_embeds.weight.shape[1]:

koilu commented 1 month ago

+1

yolain commented 1 month ago

Comfy新版本修改了东西,smzNodes的问题,等那边修复吧,可以先不开a1111_prompt_style.