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

Broken after new AUTO1111 update. #12

Open
enternalsaga opened this issue May 1, 2023 · 7 comments
Open

Broken after new AUTO1111 update. #12

enternalsaga opened this issue May 1, 2023 · 7 comments

Comments

@enternalsaga
Copy link

Hello,
Since the new update from AUTO the extension stops working. Issue state:

File "I:\stable-diffusion-webui\modules[scripts.py](https://scripts.py/)", line 256, in load_scripts

script_module = script_loading.load_module(scriptfile.path)

File "I:\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module

module_spec.loader.exec_module(module)

File "", line 883, in exec_module

File "", line 241, in _call_with_frames_removed

File "I:\stable-diffusion-webui\extensions\sd_webui_SAG\scripts[SAG.py](https://sag.py/)", line 18, in

from modules.script_callbacks import on_cfg_denoiser,CFGDenoiserParams, CFGDenoisedParams, on_cfg_denoised, AfterCFGCallbackParams, on_cfg_after_cfg

ImportError: cannot import name 'AfterCFGCallbackParams' from 'modules.script_callbacks' (I:\stable-diffusion-webui\modules\script_callbacks.py)

Hope you can fix it soon. Thank you.

@enternalsaga
Copy link
Author

FYI. Your stealth_pnginfo also broken due to new update.

@Squibeel
Copy link

Squibeel commented May 1, 2023

Can confirm it stops working because script_callback.py and sd_samplers_kdiffusion.py need to be patched again.
After manually patching it because the patcher didn't work I managed to get it working.

Here's the two patched files just in case people don't want to wait for the update.
https://easyupload.io/dgsodf

@CamWiseOwl
Copy link

That link didn't work for me so I've created my own patch here on GitHub's gists - https://gist.github.com/CamWiseOwl/eb13ba59e8750717f20db3af7f8364db

Looks like it's only sd_samplers_kdiffusion.py that needed updating for the latest update.

@hobologna
Copy link

That link didn't work for me so I've created my own patch here on GitHub's gists - https://gist.github.com/CamWiseOwl/eb13ba59e8750717f20db3af7f8364db

Looks like it's only sd_samplers_kdiffusion.py that needed updating for the latest update.

Would you mind explaining briefly how I can apply this script? I don't mind looking up the finer details, I just need to understand where this script is applied. Thanks.

@Squibeel
Copy link

Squibeel commented May 3, 2023

Strange, it works for me...
Here goes mediafire then - https://www.mediafire.com/file/ozddr7248gmecr0/patched.zip/file

@CamWiseOwl
Copy link

That link didn't work for me so I've created my own patch here on GitHub's gists - https://gist.github.com/CamWiseOwl/eb13ba59e8750717f20db3af7f8364db
Looks like it's only sd_samplers_kdiffusion.py that needed updating for the latest update.

Would you mind explaining briefly how I can apply this script? I don't mind looking up the finer details, I just need to understand where this script is applied. Thanks.

Either download @Squibeel's zip and directly replace the files or save my gist somewhere then run git apply in the root A1111 folder like the readme describes how to do -
git apply --ignore-whitespace path/to/updated.patch

@enternalsaga
Copy link
Author

Strange, it works for me... Here goes mediafire then - https://www.mediafire.com/file/ozddr7248gmecr0/patched.zip/file

Thank you but still did not work.
Traceback (most recent call last):
File "I:\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "I:\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "I:\stable-diffusion-webui\extensions\04.sd_webui_SAG\scripts\SAG.py", line 18, in
from modules.script_callbacks import on_cfg_denoiser,CFGDenoiserParams, CFGDenoisedParams, on_cfg_denoised, AfterCFGCallbackParams, on_cfg_after_cfg
ImportError: cannot import name 'AfterCFGCallbackParams' from 'modules.script_callbacks' (I:\stable-diffusion-webui\modules\script_callbacks.py)

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

4 participants