Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: [PR] Negative Guidance minimum sigma does not work with SelfAttentionGuidance Integrated built-in extension #223

Open
3 of 6 tasks
playlogitech opened this issue Dec 29, 2024 · 0 comments

Comments

@playlogitech
Copy link

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

generation crashing when NGSM enabled

Steps to reproduce the problem

increase negative guidance minumum sigma, I used 0.4

What should have happened?

generation crash with error

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

sysinfo-2024-12-29-09-32.json

Console logs

To load target model SDXL
Begin to load 1 model
Reuse 1 loaded models
[Memory Management] Current Free GPU Memory (MB) =  9211.071779251099
[Memory Management] Model Memory (MB) =  4894.0283203125
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  3293.0434589385986
Moving model(s) has taken 2.05 seconds
 38%|███████████████████████████████████████████████████████████████████████████████████████████▉                                                                                                                                                         | 6/16 [00:07<00:12,  1.29s/it]Applying NGMS at step 18: s_min_uncond = 1, sigma = 0.9869999885559082                  | 12/32 [01:03<01:13,  3.66s/it]
 38%|███████████████████████████████████████████████████████████████████████████████████████████▉                                                                                                                                                         | 6/16 [00:08<00:13,  1.33s/it]
Traceback (most recent call last):
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\modules_forge\main_thread.py", line 37, in loop
    task.work()
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\modules_forge\main_thread.py", line 26, in work
    self.result = self.func(*self.args, **self.kwargs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\modules\txt2img.py", line 114, in txt2img_function
    processed = processing.process_images(p)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\modules\processing.py", line 2679, in process_images
    res = process_images_inner(p)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\modules\processing.py", line 2839, 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 "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\modules\processing.py", line 3214, in sample
    samples = self.sampler.sample(self, x, conditioning, unconditional_conditioning, image_conditioning=self.txt2img_image_conditioning(x))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\modules\sd_samplers_kdiffusion.py", line 295, in sample
    samples = self.launch_sampling(steps, lambda: self.func(self.model_wrap_cfg, x, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state, **extra_params_kwargs))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\modules\sd_samplers_common.py", line 280, in launch_sampling
    return func()
           ^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\modules\sd_samplers_kdiffusion.py", line 295, in <lambda>
    samples = self.launch_sampling(steps, lambda: self.func(self.model_wrap_cfg, x, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state, **extra_params_kwargs))
                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\venv\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\extensions\Euler-Smea-Dyn-Sampler\smea_sampling.py", line 250, in sample_Kohaku_LoNyu_Yog
    denoised = model(x, sigma_hat * s_in, **extra_args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\venv\Lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\venv\Lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\modules\sd_samplers_cfg_denoiser.py", line 226, in forward
    denoised = sampling_function(model, x, sigma, None, cond_patched, 1.0, model_options, seed)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\ldm_patched\modules\samplers.py", line 331, in sampling_function
    cfg_result = fn(args)
                 ^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\ldm_patched\contrib\external_sag.py", line 155, in post_cfg_function
    (sag, _) = ldm_patched.modules.samplers.calc_cond_uncond_batch(model, uncond, None, degraded_noised, sigma, model_options)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PlayLogitech\Desktop\stable-diffusion-webui-reForge\ldm_patched\modules\samplers.py", line 167, in calc_cond_uncond_batch
    for x in cond:
TypeError: 'NoneType' object is not iterable
'NoneType' object is not iterable
*** Error completing request
*** Arguments: ('task(k6dfy53m2h76mdj)', <gradio.routes.Request object at 0x000001B02E00CC90>, 'highly detailed, realistic, fine fabric detail, absurdres, highly-detailed, best quality, masterpiece, very aesthetic,(very awa),cinematic shot

Additional information

latest nvidia driver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant