jojkaart / ComfyUI-sampler-lcm-alternative

ComfyUI Custom Sampler nodes that adds a new improved LCM sampler function
GNU General Public License v3.0
110 stars 13 forks source link

module 'comfy.samplers' has no attribute 'calculate_sigmas' #7

Closed mikoleg closed 1 day ago

mikoleg commented 2 months ago

Hi, getting this error. Is that a bug, did anyone else had this and how to fix? Thank you.

Error occurred when executing LCMScheduler:

module 'comfy.samplers' has no attribute 'calculate_sigmas'

File "F:\projects\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\projects\ComfyUI_windows_portable\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 "F:\projects\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\projects\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-sampler-lcm-alternative\sampler_lcm_alt.py", line 81, in get_sigmas
sigmas = comfy.samplers.calculate_sigmas(model.get_model_object("model_sampling"), "sgm_uniform", total_steps).cpu()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jojkaart commented 2 months ago

ComfyUI broke backwards compatibility with a recent change. You can either use an older commit of my custom node or update to the latest version of ComfyUI to use the most recent commit.