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

getting "Error loading script: tagger.py" on Colab #87

Open
kenkenissocool opened this issue Nov 14, 2023 · 2 comments
Open

getting "Error loading script: tagger.py" on Colab #87

kenkenissocool opened this issue Nov 14, 2023 · 2 comments

Comments

@kenkenissocool
Copy link

Hi! I'm running on Google Colab Pro+ with V100 and I tried to install this fantastic tagger extension via this command.

drive.mount('/content/drive')
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
%cd /content/stable-diffusion-webui
%cd extensions
!git clone https://github.com/picobyte/stable-diffusion-webui-wd14-tagger
%cd /content/stable-diffusion-webui
!python launch.py --share --xformers --enable-insecure-extension-access

however, even though the tagger extension appears to be installed in the SD webUI's extensions tab, the tagger tab won't show up. I tried restarting and reloading, which showed this log and didn't to any better. I am totally a newbie to this SD thing, and might've missed something, but if anyone has the same issue and hopefully a solution to this, it would be appreciated if you could comment 🙏

Checking WD14-tagger requirements.
Restarting UI...
Closing server running on port: 7860
*** Error loading script: tagger.py
    Traceback (most recent call last):
      File "/content/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/content/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/scripts/tagger.py", line 5, in <module>
        from tagger.api import on_app_started  # pylint: disable=import-error
      File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/tagger/api.py", line 17, in <module>
        from tagger import utils  # pylint: disable=import-error
      File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/tagger/utils.py", line 13, in <module>
        from tagger.interrogator import Interrogator, DeepDanbooruInterrogator, \
      File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/tagger/interrogator.py", line 32, in <module>
        if shared.cmd_opts.additional_device_ids is not None:
    AttributeError: 'Namespace' object has no attribute 'additional_device_ids'
@kenkenissocool
Copy link
Author

Oh, I changed on to T4 GPU and it worked.

@yincangshiwei
Copy link

Oh, I changed on to T4 GPU and it worked.

Hello, how did you switch to T4 GPU.

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

2 participants