You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to login with a Huggingface token via command line first and then all files were successfully downloaded. However, while loading pipeline components I got this AttributeError:
File "/opt/stable-diffusion-webui/venv/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/opt/stable-diffusion-webui/venv/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 876, in from_pretrained
loaded_sub_model = load_sub_model(
File "/opt/stable-diffusion-webui/venv/lib/python3.10/site-packages/diffusers/pipelines/pipeline_loading_utils.py", line 700, in load_sub_model
loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
File "/opt/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2604, in from_pretrained
state_dict = load_state_dict(resolved_archive_file)
File "/opt/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/modeling_utils.py", line 452, in load_state_dict
if metadata.get("format") not in ["pt", "tf", "flax"]:
AttributeError: 'NoneType' object has no attribute 'get'
Not sure whether this is caused by a bug in modeling_utils.py or something not-normal in the repo.
The text was updated successfully, but these errors were encountered:
Based on the error message, it seems that the model's safetensors file lacks metadata, leading to a None value being returned. This suggests there may be an issue with the file itself.
Since it'll be difficult to find accurate metadata for this v1.5 inpainting model, I will inject generic made-up metadata to help modeling_utils.py to read the file.
If I do this, will it affect the functioning of Inpaint Anything ?
I used the following code from this repo's README to cache the stable-diffusion-v1-5-inpainting model from here:
https://huggingface.co/benjamin-paine/stable-diffusion-v1-5-inpainting
I had to login with a Huggingface token via command line first and then all files were successfully downloaded. However, while loading pipeline components I got this AttributeError:
Not sure whether this is caused by a bug in modeling_utils.py or something not-normal in the repo.
The text was updated successfully, but these errors were encountered: