stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Interrogate CLIP, error verifying pickled file, file is not a zip file
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
I just did the following steps and it produce the following logs.
Steps to reproduce the problem
- Run web-user.bat
- Click img2img
- Upload an Image
- Click Interrogate CLIP
What should have happened?
Prompts should be generated
Commit where the problem happens
python: 3.10.9 • torch: 1.13.1+cu117 • xformers: 0.0.16rc425 • gradio: 3.16.2 • commit: 0cc0ee1b • checkpoint: fc2511737a
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
No
List of extensions
No
Console logs
venv "D:\Documents\AI Painting\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8
Installing requirements for Web UI
Launching Web UI with arguments: --xformers
Loading weights [fc2511737a] from D:\Documents\AI Painting\stable-diffusion-webui\models\Stable-diffusion\chilloutmix_NiPrunedFp32Fix.safetensors
Creating model from config: D:\Documents\AI Painting\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0):
Model loaded in 30.3s (load weights from disk: 0.2s, create model: 0.8s, apply weights to model: 18.0s, apply half(): 7.2s, load VAE: 0.2s, move model to device: 1.2s, load textual inversion embeddings: 2.7s).
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
Error verifying pickled file from D:\Documents\AI Painting\stable-diffusion-webui\models\BLIP\model_base_caption_capfilt_large.pth:
Traceback (most recent call last):
File "D:\Documents\AI Painting\stable-diffusion-webui\modules\safe.py", line 81, in check_pt
with zipfile.ZipFile(filename) as z:
File "D:\Program Files\Python310\Lib\zipfile.py", line 1267, in __init__
self._RealGetContents()
File "D:\Program Files\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 "D:\Documents\AI Painting\stable-diffusion-webui\modules\safe.py", line 135, in load_with_extra
check_pt(filename, extra_handler)
File "D:\Documents\AI Painting\stable-diffusion-webui\modules\safe.py", line 102, in check_pt
unpickler.load()
_pickle.UnpicklingError: persistent IDs in protocol 0 must be ASCII strings
-----> !!!! 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 interrogating
Traceback (most recent call last):
File "D:\Documents\AI Painting\stable-diffusion-webui\modules\interrogate.py", line 196, in interrogate
self.load()
File "D:\Documents\AI Painting\stable-diffusion-webui\modules\interrogate.py", line 123, in load
self.blip_model = self.load_blip_model()
File "D:\Documents\AI Painting\stable-diffusion-webui\modules\interrogate.py", line 103, in load_blip_model
blip_model = models.blip.blip_decoder(pretrained=files[0], image_size=blip_image_eval_size, vit='base', med_config=os.path.join(paths.paths["BLIP"], "configs", "med_config.json"))
File "D:\Documents\AI Painting\stable-diffusion-webui\repositories\BLIP\models\blip.py", line 175, in blip_decoder
model,msg = load_checkpoint(model,pretrained)
File "D:\Documents\AI Painting\stable-diffusion-webui\repositories\BLIP\models\blip.py", line 224, in load_checkpoint
state_dict = checkpoint['model']
TypeError: 'NoneType' object is not subscriptable
Additional information
No response