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]: Extension path error after moving and renaming WebUI dir #505

Open
2 tasks done
ytchen175 opened this issue Apr 16, 2024 · 2 comments
Open
2 tasks done

[Bug]: Extension path error after moving and renaming WebUI dir #505

ytchen175 opened this issue Apr 16, 2024 · 2 comments

Comments

@ytchen175
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

Have you read FAQ on README?

  • I have updated WebUI and this extension to the latest version

What happened?

The extension sd-webui-animatediff not working due to a path error, I traced some code and found this part, I suspect this is the root cause.

In animatediff_mm.py

    def get_model_dir(self):
        model_dir = shared.opts.data.get("animatediff_model_path", os.path.join(self.script_dir, "model"))
        if not model_dir:
            model_dir = os.path.join(self.script_dir, "model")
        return model_dir

Where can I specify or reset the animatediff_model_path in shared.opts.data ?

p.s. Actually, I have a lot of extensions, but only this causes errors.

OS: Windows 11

Steps to reproduce the problem

  1. Install sd-webui-animatediff from any source (WebUI, git pull, etc...)
  2. Execute webui-user.bat
  3. WebUI crashed

What should have happened?

The extension needs to be working.

Commit where the problem happens

webui: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
extension: sd-webui-animatediff

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

* --xformers
* --upcast-sampling
* --opt-split-attention
* --disable-safe-unpickle

Console logs

*** Error calling: C:\Users\ytc\Desktop\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\extensions\sd-webui-animatediff\scripts\animatediff.py/ui
    Traceback (most recent call last):
      File "C:\Users\ytc\Desktop\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\modules\scripts.py", line 547, in wrap_call
        return func(*args, **kwargs)
      File "C:\Users\ytc\Desktop\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\extensions\sd-webui-animatediff\scripts\animatediff.py", line 45, in ui
        unit = AnimateDiffUiGroup().render(
      File "C:\Users\ytc\Desktop\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\extensions\sd-webui-animatediff\scripts\animatediff_ui.py", line 290, in render
        model_list = self.get_model_list()
      File "C:\Users\ytc\Desktop\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\extensions\sd-webui-animatediff\scripts\animatediff_ui.py", line 259, in get_model_list
        os.mkdir(model_dir)
    FileNotFoundError: [WinError 3] The system cannot find the path specified.: 'C:\\Users\\ytc\\Desktop\\stable-diffusion-webui_v1.6.0_t1.13.1\\extensions\\sd-webui-animatediff\\model'

Additional information

I moved and renamed my WebUI folder, and I also installed sd-webui-animatediff before but I removed it by deleting the whole directory, now while I install it, it will cause a path error.

Before move : Desktop/stable-diffusion-webui_v1.6.0_t1.13.1
After move : Desktop/StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI

@ytchen175
Copy link
Author

I noticed that my ui-config.json was broken weirdly,
so I deleted ui-config.json and the cache.json, then rerun webui-user.bat,
and the above issue was solved!

@ytchen175
Copy link
Author

Nope...I found that the problem still exists, the above part doesn't really solve the issue, so I reopen this.

@ytchen175 ytchen175 reopened this Apr 22, 2024
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