Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Kohaku_LoNyu_Yog sampler won't load #28

Open
Kasr40k opened this issue Sep 3, 2024 · 2 comments
Open

New Kohaku_LoNyu_Yog sampler won't load #28

Kasr40k opened this issue Sep 3, 2024 · 2 comments

Comments

@Kasr40k
Copy link

Kasr40k commented Sep 3, 2024

I can't use the newly added sampler. Here's the error message displayed by the log:

!!! Exception during processing !!! module 'comfy.k_diffusion.sampling' has no attribute 'sample_sample_Kohaku_LoNyu_Yog'
Traceback (most recent call last):
File "C:\Users\ATARY\ComfyUI_windows_portable\ComfyUI\execution.py", line 317, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ATARY\ComfyUI_windows_portable\ComfyUI\execution.py", line 192, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ATARY\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in map_node_over_list
process_inputs(input_dict, i)
File "C:\Users\ATARY\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ATARY\ComfyUI_windows_portable\ComfyUI\comfy_extras\nodes_custom_sampler.py", line 226, in get_sampler
sampler = comfy.samplers.sampler_object(sampler_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ATARY\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 762, in sampler_object
sampler = ksampler(name)
^^^^^^^^^^^^^^
File "C:\Users\ATARY\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 628, in ksampler
sampler_function = getattr(k_diffusion_sampling, "sample
{}".format(sampler_name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'comfy.k_diffusion.sampling' has no attribute 'sample_sample_Kohaku_LoNyu_Yog'

@MythicalChu
Copy link

MythicalChu commented Sep 5, 2024

I found the error:
on init.py, on SAMPLER_NAMES.append("sample_Kohaku_LoNyu_Yog"), delete "sample_", it should be just the name of the sampler like the above ones are.

Damn, this sampler is heavy!

@Kasr40k
Copy link
Author

Kasr40k commented Sep 10, 2024

Thanks! That solved the error. The author should apply that correction whenever they can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants