yolain / ComfyUI-Yolain-Workflows

Some awesome comfyui workflows in here, and they are built using the comfyui-easy-use node package.
GNU General Public License v3.0
143 stars 12 forks source link

1-4通配符与风格提示词 报错,无法运行 #2

Open powercen opened 4 weeks ago

powercen commented 4 weeks ago
Snipaste_2024-06-06_08-18-22

Error occurred when executing easy a1111Loader:

float() argument must be a string or a real number, not 'Tree'

File "/Users/powercen/Documents/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/easyNodes.py", line 1039, in a1111loader return super().adv_pipeloader(ckpt_name, 'Default', vae_name, clip_skip, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/easyNodes.py", line 949, 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) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/libs/conditioning.py", line 29, in prompt_to_cond return (advanced_encode(clipped, text, prompt_token_normalization, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/libs/adv_encode.py", line 268, in advanced_encode embeddings_final, = cls().encode(clip, text, weight_interpretation, True, True, False, False, 6, 1024, 1024, 0, 0, 1024, 1024, '', '', steps) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/custom_nodes/ComfyUI_smZNodes/nodes.py", line 87, in encode result = run(params) ^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/custom_nodes/ComfyUI_smZNodes/smZNodes.py", line 754, in run cond, pooled = clip_clone.encode_from_tokens(tokens, True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/comfy/sd.py", line 135, in encode_from_tokens cond, pooled = self.cond_stage_model.encode_token_weights(tokens) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/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 "/Users/powercen/Documents/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 "/Users/powercen/Documents/ComfyUI/custom_nodes/ComfyUI_smZNodes/modules/prompt_parser.py", line 187, in get_learned_conditioning prompt_schedules = get_learned_conditioning_prompt_schedules(prompts, steps, hires_steps, use_old_scheduling) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/custom_nodes/ComfyUI_smZNodes/modules/prompt_parser.py", line 142, in get_learned_conditioning_prompt_schedules promptdict = {prompt: get_schedule(prompt) for prompt in set(prompts)} ^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/custom_nodes/ComfyUI_smZNodes/modules/prompt_parser.py", line 140, in get_schedule return [[t, at_step(t, tree)] for t in collect_steps(steps, tree)] ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/custom_nodes/ComfyUI_smZNodes/modules/prompt_parser.py", line 106, in collect_steps CollectSteps().visit(tree) File "/Users/powercen/Documents/ComfyUI/venv/lib/python3.12/site-packages/lark/visitors.py", line 316, in visit self._call_userfunc(subtree) File "/Users/powercen/Documents/ComfyUI/venv/lib/python3.12/site-packages/lark/visitors.py", line 294, in _call_userfunc return getattr(self, tree.data, self.default)(tree) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/powercen/Documents/ComfyUI/custom_nodes/ComfyUI_smZNodes/modules/prompt_parser.py", line 91, in scheduled v = float(s) ^^^^^^^^

powercen commented 4 weeks ago

使用的是mac m1 max