shiimizu / ComfyUI_smZNodes

Custom nodes for ComfyUI such as CLIP Text Encode++
GNU General Public License v3.0
200 stars 14 forks source link

Error after last comfyui update #87

Closed guennibear closed 1 month ago

guennibear commented 1 month ago

Seems that the last update broke something:

Error occurred when executing smZ CLIPTextEncode:

tuple index out of range

File "C:\ComfyUi\ComfyUI\custom_nodes\jn_comfyui\patch\execution.py", line 88, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\ComfyUi\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 "C:\ComfyUi\ComfyUI\custom_nodes\ComfyUI-0246\utils.py", line 381, in new_func res_value = old_func(*final_args, kwargs) File "C:\ComfyUi\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "C:\ComfyUi\ComfyUI\custom_nodes\ComfyUI_smZNodes\nodes.py", line 87, in encode result = run(**params) File "C:\ComfyUi\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 755, in run cond, pooled = clip_clone.encode_from_tokens(tokens, True) File "C:\ComfyUi\ComfyUI\comfy\sd.py", line 115, in encode_from_tokens o = self.cond_stage_model.encode_token_weights(tokens) File "C:\ComfyUi\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 489, in encode_token_weights g_out, g_pooled = self.clip_g.encode_token_weights(token_weight_pairs_g, steps, current_step, multi) File "C:\ComfyUi\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 443, 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 "C:\ComfyUi\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 "C:\ComfyUi\ComfyUI\custom_nodes\ComfyUI_smZNodes\modules\prompt_parser.py", line 198, in get_learned_conditioning conds = model.forward(texts) File "C:\ComfyUi\ComfyUI\custom_nodes\ComfyUI_smZNodes\modules\sd_hijack_clip.py", line 224, in forward z = self.process_tokens(tokens, multipliers, multipliers_solo_emb) File "C:\ComfyUi\ComfyUI\custom_nodes\ComfyUI_smZNodes\modules\sd_hijack_clip.py", line 254, in process_tokens z = self.encode_with_transformers(tokens) File "C:\ComfyUi\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 197, in encode_with_transformers return self.encode_with_transformerscomfy(tokens, return_pooled) File "C:\ComfyUi\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 125, in encode_with_transformerscomfy z, pooled = ClipTextEncoderCustom._forward(self.wrapped, tokens_orig) File "C:\ComfyUi\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 114, in _forward z, pooled_output = self.forward(tokens) File "C:\ComfyUi\ComfyUI\comfy\sd1_clip.py", line 181, in forward tokens = self.set_up_textual_embeddings(tokens, backup_embeds) File "C:\ComfyUi\ComfyUI\comfy\sd1_clip.py", line 153, in set_up_textual_embeddings if y.shape[0] == current_embeds.weight.shape[1]:

guennibear commented 1 month ago

Fixed itself after reupdating comfyui again