stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]:AttributeError: module 'k_diffusion.external' has no attribute 'CompVisVDenoiser'

Open Rartist opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

Trying to generate a small bath at 768 x 768 with the new 768 Model.

When I pressed Generate I got the following error message:

Traceback (most recent call last):
  File "E:\StableDiffusion\stable-diffusion-webui\modules\ui.py", line 169, in f
    res = list(func(*args, **kwargs))
  File "E:\StableDiffusion\stable-diffusion-webui\webui.py", line 58, in f
    res = func(*args, **kwargs)
  File "E:\StableDiffusion\stable-diffusion-webui\modules\txt2img.py", line 49, in txt2img
    processed = process_images(p)
  File "E:\StableDiffusion\stable-diffusion-webui\modules\processing.py", line 430, in process_images
    res = process_images_inner(p)
  File "E:\StableDiffusion\stable-diffusion-webui\modules\processing.py", line 531, in process_images_inner
    samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength, prompts=prompts)
  File "E:\StableDiffusion\stable-diffusion-webui\modules\processing.py", line 660, in sample
    self.sampler = sd_samplers.create_sampler(self.sampler_name, self.sd_model)
  File "E:\StableDiffusion\stable-diffusion-webui\modules\sd_samplers.py", line 63, in create_sampler
    sampler = config.constructor(model)
  File "E:\StableDiffusion\stable-diffusion-webui\modules\sd_samplers.py", line 39, in <lambda>
    SamplerData(label, lambda model, funcname=funcname: KDiffusionSampler(funcname, model), aliases, options)
  File "E:\StableDiffusion\stable-diffusion-webui\modules\sd_samplers.py", line 353, in __init__
    denoiser = k_diffusion.external.CompVisVDenoiser if sd_model.parameterization == "v" else k_diffusion.external.CompVisDenoiser
AttributeError: module 'k_diffusion.external' has no attribute 'CompVisVDenoiser'

Steps to reproduce the problem

  1. Try to Generate using the 768-V Model.

Command Line Arguments

--xformers

Rartist avatar Nov 27 '22 11:11 Rartist

Not all samplers are yet supported with SD 2.0. When you switch to DDIM sampler it should work.

ioma8 avatar Nov 27 '22 19:11 ioma8