ComfyUI
ComfyUI copied to clipboard
After updating ComfyUI today: Error occurred when executing KSamplerSDXLAdvanced: 'SDXL' object has no attribute 'get_model_object'
After updating ComfyUI today, it encountered the following error:
Error occurred when executing KSamplerSDXLAdvanced:
'SDXL' object has no attribute 'get_model_object'
File "H: \ ComfyUI_windows \ ComfyUI_20240128 \ ComfyUI_windowsuportable \ ComfyUI \ execution. py", line 151, in recursive_execute
Output_data, output_ui=get_output_data (obj, input_data-all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H: \ ComfyUI_windows \ ComfyUI_20240128 \ ComfyUI_windowsuportable \ ComfyUI \ execution. py", line 81, in get_output_data
Return_values=map_dode_over_list (obj, input_data-all, obj. FUSION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H: \ ComfyUI_windows \ ComfyUI_20240128 \ ComfyUI_windowsuportable \ ComfyUI \ execution. py", line 74, in mapynode-over_list
Results. append (getattr (obj, fun)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H: \ ComfyUI_windows \ ComfyUI_20240128 \ ComfyUI_windowsuportable \ ComfyUI \ custom nodes \ ksampler_sdxl. py", line 257, in sample_sdxl
Noisy_base=self. compute and generate invoice (latent_image, seed, width, height, batch_size, model_model, sampler, scheduler, base_end-at, base_startat, base_end-at, noise_source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H: \ ComfyUI_windows \ ComfyUI_20240128 \ ComfyUI_windowsuportable \ ComfyUI \ custom_dodes \ ksampler_sdxl. py", line 223, in computed-and_generate-noise
Sigma_balls=self.calc_sigma (model, sampler, scheduler, total_steps, start_at, end.at)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H: \ ComfyUI_windows \ ComfyUI_20240128 \ ComfyUI_windowsuportable \ ComfyUI \ custom nodes \ ksampler_sdxl. py", line 156, in calc_sigma
Sampler=comfy. samplers KSampler (real_model, steps=steps, device=device, sampler=sampler-name, scheduler=scheduler, denoise=1.0, model-options=model. model-options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H: \ ComfyUI_windows \ ComfyUI_20240128 \ ComfyUI_windowsuportable \ ComfyUI \ comfy \ samplers. py", line 705, in init
Self. set_steps (steps, denoise)
File "H: \ ComfyUI_windows \ ComfyUI_20240128 \ ComfyUI_windowsuportable \ ComfyUI \ comfy \ samplers. py", line 726, in set_steps
Self. sigmas=self. computate_sigmas (steps). to (self. device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H: \ ComfyUI_windows \ ComfyUI_20240128 \ ComfyUI_windowsuportable \ ComfyUI \ comfy \ samplers. py", line 717, in calculateSigmas
Sigmas=calculate_sigmas (self. model. get_model_object ("model_sampling"), self. scheduler, steps)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H: \ ComfyUI_windows \ ComfyUI_20240128 \ ComfyUI_windowsuportable \ python_embedded \ Lib \ site packages \ torch \ n \ modules \ module. py", line 1688, in getattr_
Raise AttributeError (f "{type (self). name_} 'object has no attribute' {name} '")
Update the manager, then go to install missing custom nodes to install what is missing, and reload
Update the manager, then go to install missing custom nodes to install what is missing, and reload
I have updated everything, but the problem still exists, Thank you for your reply.
https://civitai.com/models/121394/comfyui-extreme-detail-control-ksampler-for-sdxl?modelVersionId=132081
I am currently running into the same problem when trying to make https://github.com/SeargeDP/SeargeSDXL costum_sdxl_ksampler.py work again. I managed to adjust for the recent changes to sample.py, sampler.py and sampler_helper.py just fine, but this error is really giving me problems.
Same here
Error occurred when executing KSamplerSDXLAdvanced:
'SDXL' object has no attribute 'get_model_object'
Some issue
Error occurred when executing BNK_GetSigma:
'SDXL' object has no attribute 'get_model_object'