'CFGDenoiser' object has no attribute 'model_config'

#13
by Erichywy - opened

Snipaste_2023-08-21_20-28-13.png

Error occurred when executing KSampler:
'CFGDenoiser' object has no attribute 'model_config'

File "/home/bob/ComfyUI/execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/home/bob/ComfyUI/execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/home/bob/ComfyUI/execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/home/bob/ComfyUI/nodes.py", line 1206, in sample
return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise)
File "/home/bob/ComfyUI/nodes.py", line 1176, in common_ksampler
samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
File "/home/bob/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/modules/impact/hacky.py", line 9, in informative_sample
return original_sample(*args, **kwargs)
File "/home/bob/ComfyUI/comfy/sample.py", line 93, in sample
samples = sampler.sample(noise, positive_copy, negative_copy, cfg=cfg, latent_image=latent_image, start_step=start_step, last_step=last_step, force_full_denoise=force_full_denoise, denoise_mask=noise_mask, sigmas=sigmas, callback=callback, disable_pbar=disable_pbar, seed=seed)
File "/tmp/tmpt099oflo.py", line 41, in sample
pre_run_control(self.model_wrap, negative + positive)
File "/home/bob/ComfyUI/comfy/samplers.py", line 481, in pre_run_control
x[1]['control'].pre_run(model.inner_model.inner_model, percent_to_timestep_function)
File "/home/bob/ComfyUI/comfy/sd.py", line 924, in pre_run
controlnet_config = model.model_config.unet_config.copy()
File "/home/bob/anaconda3/envs/ComfyUI/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1614, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(

The configuration should be fine. I'm not sure where the error occurred.

Erichywy changed discussion status to closed

How did you fix this ? I got same error.

Got the same error, unsure what is causing it. Anyone post or find a solution?

Sign up or log in to comment