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

Embeddings won't load #44

Closed
float-trip opened this issue Sep 1, 2022 · 2 comments
Closed

Embeddings won't load #44

float-trip opened this issue Sep 1, 2022 · 2 comments

Comments

@float-trip
Copy link

Thank you for this repo!

Is there an issue with embeddings right now? They were working for yesterday (and still work with hlky's UI) but give this error now:

Error loading emedding Usada.pt:
Traceback (most recent call last):
  File "stable-diffusion-webui/webui.py", line 745, in load_textual_inversion_embeddings
    process_file(os.path.join(dirname, fn), fn)
  File "stable-diffusion-webui/webui.py", line 731, in process_file
    assert len(param_dict) == 1, 'embedding file has multiple terms in it'
  File "/root/miniconda3/envs/ui/lib/python3.8/site-packages/torch/nn/modules/container.py", line 623, in __len__
    return len(self._keys)
  File "/root/miniconda3/envs/ui/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1207, in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'ParameterDict' object has no attribute '_keys'
@AUTOMATIC1111
Copy link
Owner

This seems to be caused by newer version of torch loading an incompatible file from a previous version.

I pushed a fix.

@float-trip
Copy link
Author

Everything works after pulling again, thank you for the quick fix!

Franek313 pushed a commit to Franek313/stable-diffusion-webui that referenced this issue Feb 17, 2024
* mask batch, not working

* mask batch, working, infotext broken

* try remove old codes

* set CUDA_VISIBLE_DEVICES with args

* Revert "try remove old codes"

This reverts commit 63c527c373383f7eb99e134ca6b298bc613ac4ca.

* Update controlnet_ui_group.py

* readme

* 🐛 Fix infotext

---------

Co-authored-by: lllyasviel <lyuminzhang@outlook.com>
Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca>
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