Comfy-Org / Comfy-Org/ComfyUI

After updating ComfyUI today: Error occurred when executing KSamplerSDXLAdvanced: 'SDXL' object has no attribute 'get_model_object'

Open
#3,217 8 comments 0 reactions 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

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} '")

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.