lllyasviel / lllyasviel/stable-diffusion-webui-forge

AttributeError: 'CFGDenoiserKDiffusion' object has no attribute 'inner_model'

Open
#1,337 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Get this on a fresh install with no modifications. Please help.
Traceback (most recent call last):
File "D:\AI_Models\webui_forge_cu121_torch231\webui\modules_forge\main_thread.py", line 30, in work
self.result = self.func(*self.args, **self.kwargs)
File "D:\AI_Models\webui_forge_cu121_torch231\webui\modules\txt2img.py", line 110, in txt2img_function
processed = processing.process_images(p)
File "D:\AI_Models\webui_forge_cu121_torch231\webui\modules\processing.py", line 815, in process_images
res = process_images_inner(p)
File "D:\AI_Models\webui_forge_cu121_torch231\webui\modules\processing.py", line 958, in process_images_inner
samples_ddim = p.sample(conditioning=p.c, unconditional_conditioning=p.uc, seeds=p.seeds, subseeds=p.subseeds, subseed_strength=p.subseed_strength, prompts=p.prompts)
File "D:\AI_Models\webui_forge_cu121_torch231\webui\modules\processing.py", line 1285, in sample
self.sampler = sd_samplers.create_sampler(self.sampler_name, self.sd_model)
File "D:\AI_Models\webui_forge_cu121_torch231\webui\modules\sd_samplers.py", line 42, in create_sampler
sampler = config.constructor(model)
File "D:\AI_Models\webui_forge_cu121_torch231\webui\modules\sd_samplers_kdiffusion.py", line 34, in
sd_samplers_common.SamplerData(label, lambda model, funcname=funcname: KDiffusionSampler(funcname, model), aliases, options)
File "D:\AI_Models\webui_forge_cu121_torch231\webui\modules\sd_samplers_kdiffusion.py", line 75, in __init__
self.model_wrap = self.model_wrap_cfg.inner_model
File "D:\AI_Models\webui_forge_cu121_torch231\system\python\lib\site-packages\torch\nn\modules\module.py", line 1709, in __getattr__
raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'CFGDenoiserKDiffusion' object has no attribute 'inner_model'

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the traceback path in modules/sd_samplers_kdiffusion.py at KDiffusionSampler.__init__, then trace sampler creation from modules/sd_samplers.py and the txt2img flow in modules/processing.py. Reproduce the fresh-install txt2img workflow and determine what is needed for sampler creation to complete without the reported AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
backend, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.