Model not loading in automatic1111 ui

#5
by KappaPrime - opened

Got this error while trying to load the model

Error verifying pickled file from G:...\models\Stable-diffusion\model-nova.ckpt:
Traceback (most recent call last):
File "G:...\modules\safe.py", line 83, in check_pt
with zipfile.ZipFile(filename) as z:
File "C:\Users...\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1267, in init
self._RealGetContents()
File "C:\Users...\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 "G:...\modules\safe.py", line 131, in load_with_extra
check_pt(filename, extra_handler)
File "G:...\modules\safe.py", line 98, in check_pt
unpickler.load()
_pickle.UnpicklingError: could not find MARK

-----> !!!! 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.

Traceback (most recent call last):
File "G:...\venv\lib\site-packages\gradio\routes.py", line 284, in run_predict
output = await app.blocks.process_api(
File "G:...\venv\lib\site-packages\gradio\blocks.py", line 982, in process_api
result = await self.call_function(fn_index, inputs, iterator)
File "G:...\venv\lib\site-packages\gradio\blocks.py", line 824, in call_function
prediction = await anyio.to_thread.run_sync(
File "G:...\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "G:...\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "G:...\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "G:...\modules\ui.py", line 1662, in
fn=lambda value, k=k: run_settings_single(value, key=k),
File "G:...\modules\ui.py", line 1504, in run_settings_single
opts.data_labels[key].onchange()
File "G:...\webui.py", line 41, in f
res = func(*args, **kwargs)
File "G:...\webui.py", line 83, in
shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights()))
File "G:...\modules\sd_models.py", line 295, in reload_model_weights
load_model_weights(sd_model, checkpoint_info)
File "G:...\modules\sd_models.py", line 184, in load_model_weights
if "global_step" in pl_sd:
TypeError: argument of type 'NoneType' is not iterable

Is it because of recent changes to vae config?

Sign up or log in to comment