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

Download wrong file from CivitAI #79

Closed
LLKoder opened this issue Jan 28, 2024 · 1 comment
Closed

Download wrong file from CivitAI #79

LLKoder opened this issue Jan 28, 2024 · 1 comment

Comments

@LLKoder
Copy link

LLKoder commented Jan 28, 2024

It was two days ago.

It seems download was broken.

When I download a model via MO I see in console:

Tower13Studios-Rocjelle_Vicious.pt: 118kiB [00:00, 3.69MiB/s]
But this model does not have a size of 118kb. The actual size of this model is 75-80kb.

And when I restart SD I get errors with this model.

** Error verifying pickled file from ...\Tower13Studios-Rocjelle_Vicious.pt
*** The file may be malicious, so the program is not going to read it.
*** You can skip this check with --disable-safe-unpickle commandline argument.


Traceback (most recent call last):
  File "...\stable-diffusion-webui\modules\safe.py", line 83, in check_pt
    with zipfile.ZipFile(filename) as z:
  File "...\Programs\Python\Python310\lib\zipfile.py", line 1269, in __init__
    self._RealGetContents()
  File "...\Programs\Python\Python310\lib\zipfile.py", line 1336, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "...\stable-diffusion-webui\modules\safe.py", line 137, in load_with_extra
    check_pt(filename, extra_handler)
  File "...\stable-diffusion-webui\modules\safe.py", line 104, in check_pt
    unpickler.load()
  File "...\Programs\Python\Python310\lib\pickle.py", line 1213, in load
    dispatch[key[0]](self)
KeyError: 60

*** Error loading embedding Tower13Studios-Rocjelle_Vicious.pt
Traceback (most recent call last):
File "...\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 203, in load_from_dir
self.load_from_file(fullfn, fn)
File "...\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 184, in load_from_file
embedding = create_embedding_from_data(data, name, filename=filename, filepath=path)
File "...\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 284, in create_embedding_from_data
if 'string_to_param' in data: # textual inversion embeddings
TypeError: argument of type 'NoneType' is not iterable

My other PT models are opened by 7z, but not this one. Archive is corrupt.

Download link to the model is correced.
Size and restart of SD are corrected either when I download this model via browser.

I had this issue the days before seldom, but last two days I have this bug always.

I download from CivitAI.
There is the link of model page.

I can't download any models via MO more.

@LLKoder
Copy link
Author

LLKoder commented Jan 28, 2024

I don't know what happen but issue is gone now.

@LLKoder LLKoder closed this as completed Jan 28, 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