stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: new ckpt merge won't load. labed unsafe to unpickle error
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
tried to load newly made merge (using this webui, of f2222 and anything v3) and got "Error verifying pickled file" both parent ckpts load fine
Steps to reproduce the problem
1 -make merge in a1111 webui 2- attempt to load new model (via both top left dropdown, and x/y changecheckpoints) 3- error!
What should have happened?
loaded model. presumably it should be safe if both parents are (or at least should read the same ;) )
Commit where the problem happens
98947d173e3f1667eba29c904f681047dea9de90
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
--autolaunch --api git pull
Additional information, context and logs
Loading weights [e3b0c442] from C:\Users\Mariah\stable-diffusion-webui\models\Stable-diffusion\f2222-20_aV3-80_float16weighted.ckpt Error verifying pickled file from C:\Users\Mariah\stable-diffusion-webui\models\Stable-diffusion\f2222-20_aV3-80_float16weighted.ckpt: Traceback (most recent call last): File "C:\Users\Mariah\stable-diffusion-webui\modules\safe.py", line 83, in check_pt with zipfile.ZipFile(filename) as z: File "C:\Users\Mariah\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1267, in init self._RealGetContents() File "C:\Users\Mariah\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 "C:\Users\Mariah\stable-diffusion-webui\modules\safe.py", line 131, in load_with_extra check_pt(filename, extra_handler) File "C:\Users\Mariah\stable-diffusion-webui\modules\safe.py", line 98, in check_pt unpickler.load() EOFError: Ran out of input
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 "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 284, in run_predict
output = await app.blocks.process_api(
File "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 982, in process_api
result = await self.call_function(fn_index, inputs, iterator)
File "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 824, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "C:\Users\Mariah\stable-diffusion-webui\modules\ui.py", line 1662, in
added commandline arg: --disable-safe-unpickle still will not load merge files. new log:
Loading weights [e3b0c442] from C:\Users\Mariah\stable-diffusion-webui\models\Stable-diffusion\f2222-20_aV3-80_float16weighted.ckpt
Traceback (most recent call last):
File "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 284, in run_predict
output = await app.blocks.process_api(
File "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 982, in process_api
result = await self.call_function(fn_index, inputs, iterator)
File "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 824, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\Users\Mariah\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "C:\Users\Mariah\stable-diffusion-webui\modules\ui.py", line 1662, in
EOFError: Ran out of input
Any chance of broken / truncated model file?
Same error here
Command Line Arguments --autolaunch --api git pull
is git pull a valid arg to add even? does it work without it added?
This happens when a merge fails to get created properly, if you open the .ckpt with winrar/7zip inside should be a folder, the folders name should be archive... if it is not then it doesn't load. A workaround for this is to put the custom output model name to archive and then rename the ckpt after its been merged. I don't have this trouble in a1111 but ran into it a couple of times with another merger. Seemed to happen when running low on RAM during the merge.
File is corrupted, probably.