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

Missing imports right after installing #28

Open
skoot opened this issue Jun 4, 2023 · 2 comments
Open

Missing imports right after installing #28

skoot opened this issue Jun 4, 2023 · 2 comments

Comments

@skoot
Copy link

skoot commented Jun 4, 2023

I just installed this extension and I get the following error in the console:

Error loading script: daam_script.py
Traceback (most recent call last):
  File "K:\stable-diffusion-webui\modules\scripts.py", line 263, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "K:\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 "K:\stable-diffusion-webui\extensions\stable-diffusion-webui-daam\scripts\daam_script.py", line 21, in <module>
    from scripts.daam import trace, utils
  File "K:\stable-diffusion-webui\extensions\stable-diffusion-webui-daam\scripts\daam\__init__.py", line 3, in <module>
    from .utils import *
  File "K:\stable-diffusion-webui\extensions\stable-diffusion-webui-daam\scripts\daam\utils.py", line 9, in <module>
    from fonts.ttf import Roboto
ModuleNotFoundError: No module named 'fonts'

I tried doing a pip install fonts but then it says that fonts.ttf doesn't contain Roboto.

pip install font-roboto fixed the issue.

I don't see any requirements.txt file in this repo, shouldn't it have one?

@1nSaneRu
Copy link

I have this problem too...
After your fix any generation broken

RuntimeError: shape '[8, 1, 25, 18]' is invalid for input of size 3800

And other same strings...

@justarmadillo
Copy link

go to the extension location under:
stable-diffusion-webui\extensions\stable-diffusion-webui-daam\scripts\daam\

replace utils.py with these 2 files, it should work 100%

fix.zip

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