shiimizu / ComfyUI_smZNodes

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

fix an issue that causes web api queue prompt to fail. #11

Closed CyborgYL closed 11 months ago

CyborgYL commented 11 months ago

Bug Fix: !!! Exception during processing !!! Traceback (most recent call last): File "D:\git\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\git\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 "D:\git\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "D:\git\ComfyUI\custom_nodes\ComfyUI_smZNodes\nodes.py", line 57, in encode result = run(params) File "D:\git\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 693, in run cond, pooled = clip_clone.encode_from_tokens(tokens, True) File "D:\git\ComfyUI\comfy\sd.py", line 120, in encode_from_tokens cond, pooled = self.cond_stage_model.encode_token_weights(tokens) File "D:\git\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 472, in encode_token_weights cond = reconstruct_schedules(schedules, current_step) File "D:\git\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 458, in reconstruct_schedules return reconstruct_fn(schedules, step) File "D:\git\ComfyUI\custom_nodes\ComfyUI_smZNodes\modules\prompt_parser.py", line 355, in reconstruct_multicond_batch if int(current_step) <= entry.end_at_step: TypeError: '<=' not supported between instances of 'int' and 'str'

shiimizu commented 11 months ago

Thanks for the PR. It was an issue with getting the number of steps correctly. Does https://github.com/shiimizu/ComfyUI_smZNodes/commit/f2d27affbc08909990e1b27a7a32092fcdbd6a0d fix it?

CyborgYL commented 11 months ago

Thanks for the PR. It was an issue with getting the number of steps correctly. Does f2d27af fix it? Yes! This solves the problem. Thank you. I'll close the request.