Error load Ti into SD

#1
by Mori-e - opened

Windows 10, local machine, I have re-downloaded file multiple times. i believe the file is not corrupted

Error verifying pickled file from E:\AUTOMATIC1111\stable-diffusion-webui\embeddings\bad-hands-5.pt:05<00:58, 1.04s/it]
Traceback (most recent call last):
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 81, in check_pt
with zipfile.ZipFile(filename) as z:
File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1267, in init
self._RealGetContents()
File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1334, 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 "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 135, in load_with_extra
check_pt(filename, extra_handler)
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 102, in check_pt
unpickler.load()
_pickle.UnpicklingError: invalid load key, '<'.

-----> !!!! The file is most likely corrupted !!!! <-----
You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.

Error loading embedding bad-hands-5.pt:
Traceback (most recent call last):
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 206, in load_from_dir
self.load_from_file(fullfn, fn)
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 164, in load_from_file
if 'string_to_param' in data:
TypeError: argument of type 'NoneType' is not iterable

27%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 8/30 [00:05<00:14, 1.55it/s]Error verifying pickled file from E:\AUTOMATIC1111\stable-diffusion-webui\embeddings\bad-hands-5.pt:08<00:35, 1.44it/s]
Traceback (most recent call last):
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 81, in check_pt
with zipfile.ZipFile(filename) as z:
File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1267, in init
self._RealGetContents()
File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1334, 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 "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 135, in load_with_extra
check_pt(filename, extra_handler)
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 102, in check_pt
unpickler.load()
_pickle.UnpicklingError: invalid load key, '<'.

-----> !!!! The file is most likely corrupted !!!! <-----
You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.

Error loading embedding bad-hands-5.pt:
Traceback (most recent call last):
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 206, in load_from_dir
self.load_from_file(fullfn, fn)
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 164, in load_from_file
if 'string_to_param' in data:
TypeError: argument of type 'NoneType' is not iterable

skill issue

How to fix it?

Windows 10, local machine, I have re-downloaded file multiple times. i believe the file is not corrupted

Error verifying pickled file from E:\AUTOMATIC1111\stable-diffusion-webui\embeddings\bad-hands-5.pt:05<00:58, 1.04s/it]
Traceback (most recent call last):
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 81, in check_pt
with zipfile.ZipFile(filename) as z:
File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1267, in init
self._RealGetContents()
File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1334, 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 "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 135, in load_with_extra
check_pt(filename, extra_handler)
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 102, in check_pt
unpickler.load()
_pickle.UnpicklingError: invalid load key, '<'.

-----> !!!! The file is most likely corrupted !!!! <-----
You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.

Error loading embedding bad-hands-5.pt:
Traceback (most recent call last):
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 206, in load_from_dir
self.load_from_file(fullfn, fn)
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 164, in load_from_file
if 'string_to_param' in data:
TypeError: argument of type 'NoneType' is not iterable

27%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 8/30 [00:05<00:14, 1.55it/s]Error verifying pickled file from E:\AUTOMATIC1111\stable-diffusion-webui\embeddings\bad-hands-5.pt:08<00:35, 1.44it/s]
Traceback (most recent call last):
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 81, in check_pt
with zipfile.ZipFile(filename) as z:
File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1267, in init
self._RealGetContents()
File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1334, 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 "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 135, in load_with_extra
check_pt(filename, extra_handler)
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\safe.py", line 102, in check_pt
unpickler.load()
_pickle.UnpicklingError: invalid load key, '<'.

-----> !!!! The file is most likely corrupted !!!! <-----
You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.

Error loading embedding bad-hands-5.pt:
Traceback (most recent call last):
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 206, in load_from_dir
self.load_from_file(fullfn, fn)
File "E:\AUTOMATIC1111\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 164, in load_from_file
if 'string_to_param' in data:
TypeError: argument of type 'NoneType' is not iterable

Try, this:
https://huggingface.co/yesyeahvh/bad-hands-5/resolve/5844e212d87804859624380998a6725efb775909/bad-hands-5.pt

Hey, sorry about my last comment, but I got an email with the latest reply and so I asked a friend about it.

Apparently this error will occur if you download the file incorrectly, resulting in getting an html file of the page itself named as if it were the actual stable diffusion embedding.

Sign up or log in to comment