Spaces:
Running
Update app.py
Hi, I had to revert these changes because of the following errors when attempting to load xime.ckpt:
Converter] Loading Xime.ckpt...
Error verifying pickled file from /home/user/stable-diffusion-webui/models/Stable-diffusion/Xime.ckpt:
Traceback (most recent call last):
File "/home/user/stable-diffusion-webui/modules/safe.py", line 136, in load_with_extra
check_pt(filename, extra_handler)
File "/home/user/stable-diffusion-webui/modules/safe.py", line 83, in check_pt
check_zip_filenames(filename, z.namelist())
File "/home/user/stable-diffusion-webui/modules/safe.py", line 75, in check_zip_filenames
raise Exception(f"bad file inside {filename}: {name}")
Exception: bad file inside /home/user/stable-diffusion-webui/models/Stable-diffusion/Xime.ckpt: Xime/byteorder
The file may be malicious, so the program is not going to read it.
And got this error when trying to convert it into safetensors format:
Traceback (most recent call last):
File "/home/user/.local/lib/python3.10/site-packages/gradio/routes.py", line 408, in run_predict
output = await app.get_blocks().process_api(
File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1315, in process_api
result = await self.call_function(
File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1043, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/user/.local/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/user/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/user/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/home/user/stable-diffusion-webui/extensions/sd-webui-model-converter/scripts/convert.py", line 129, in convert_warp
return do_convert(MockModelInfo(model_info.filename), *args)
File "/home/user/stable-diffusion-webui/extensions/sd-webui-model-converter/scripts/convert.py", line 156, in do_convert
state_dict = load_model(model_info.filepath)
File "/home/user/stable-diffusion-webui/extensions/sd-webui-model-converter/scripts/convert.py", line 56, in load_model
state_dict = m["state_dict"] if "state_dict" in m else m
TypeError: argument of type 'NoneType' is not iterable