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

An issue, where CFGDenoiser.forward() seems to have "missing" argument #14

Closed
mart-hill opened this issue May 5, 2023 · 2 comments
Closed

Comments

@mart-hill
Copy link

I noticed, that latest (as of today) forks of WebUI, like this or this one, have trouble running your extension:

06:46:42-393315 ERROR    gradio call: TypeError
╭──────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────╮
│ X:\AI\automatic\modules\call_queue.py:59 in f                                                                                     │
│                                                                                                                                   │
│    58 │   │   │   │   pr.enable()                                                                                                 │
│ ❱  59 │   │   │   res = list(func(*args, **kwargs))                                                                               │
│    60 │   │   │   if shared.cmd_opts.profile:                                                                                     │
│                                                                                                                                   │
│ X:\AI\automatic\modules\call_queue.py:38 in f                                                                                     │
│                                                                                                                                   │
│    37 │   │   │   try:                                                                                                            │
│ ❱  38 │   │   │   │   res = func(*args, **kwargs)                                                                                 │
│    39 │   │   │   │   progress.record_results(id_task, res)                                                                       │
│                                                                                                                                   │
│                                                     ... 10 frames hidden ...                                                      │
│                                                                                                                                   │
│ X:\AI\automatic\extensions\stable-diffusion-webui-sonar\scripts\sonar.py:363 in sample_euler_ancestral_ex                         │
│                                                                                                                                   │
│   362 │   │   # [1, 4, 64, 64], 一步降噪后,生成的图越来越明显, sigma理解为步长dx                                                 │
│ ❱ 363 │   │   denoised = model(x, sigmas[i] * s_in, **extra_args)                                                                 │
│   364 │   │   show_featmap(denoised, f'denoised (step {i})')                                                                      │
│                                                                                                                                   │
│ X:\AI\automatic\venv\lib\site-packages\torch\nn\modules\module.py:1501 in _call_impl                                              │
│                                                                                                                                   │
│   1500 │   │   │   │   or _global_forward_hooks or _global_forward_pre_hooks):                                                    │
│ ❱ 1501 │   │   │   return forward_call(*args, **kwargs)                                                                           │
│   1502 │   │   # Do not call functions when jit is used                                                                           │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: CFGDenoiser.forward() missing 1 required positional argument: 's_min_uncond'

Is it something in the gradio 3.28.1 or some latest changes in the vanilla WebUI (which are being implemented in the forks as well, albeit a bit later)?

@lzardy
Copy link

lzardy commented May 7, 2023

This is true for me as well.

@deGENERATIVE-SQUAD
Copy link

Same issue on the latest A1111.

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

3 participants