Junyi42 / GeoAware-SC

Official Implementation of paper "Telling Left from Right: Identifying Geometry-Aware Semantic Correspondence"
https://telling-left-from-right.github.io
92 stars 8 forks source link

downloading weights error #11

Open feixue94 opened 1 month ago

feixue94 commented 1 month ago

Hi Author, Thanks for sharing this excellent work. I got this error Failed to download https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt when running the feature extraction script. Do you know how to fix it?

Best,

feixue94 commented 1 month ago

It seems like the link on huggingface is not valid. Could you please provide a valid link and the path where the checkpoint should be on the computer?

Junyi42 commented 1 month ago

Hi,

Thanks for posing the issue.

Please refer to https://github.com/Junyi42/GeoAware-SC/blob/b7372c8a98fd87b5f1da3e08f6ae20dbb566609e/third_party/ODISE/odise/utils/file_io.py#L55 on how to setup the local path for the model.

Can you please try the huggingface repo of sd1.5 from another third party? For example, https://huggingface.co/dnwalkup/StableDiffusion-v1-Releases/blob/main/v1-5-pruned-emaonly.ckpt . If that doesn't work, I will try to upload my local copy.

Thanks.

Mofr77 commented 1 month ago

Hi,

Thanks for posing the issue.

Please refer to

https://github.com/Junyi42/GeoAware-SC/blob/b7372c8a98fd87b5f1da3e08f6ae20dbb566609e/third_party/ODISE/odise/utils/file_io.py#L55

on how to setup the local path for the model. Can you please try the huggingface repo of sd1.5 from another third party? For example, https://huggingface.co/dnwalkup/StableDiffusion-v1-Releases/blob/main/v1-5-pruned-emaonly.ckpt . If that doesn't work, I will try to upload my local copy.

Thanks.

Hi, Thanks for your reply, But this method doesn't work, it still downloads from the original URL

Junyi42 commented 1 month ago

Hi,

Could you please try wget https://huggingface.co/dnwalkup/StableDiffusion-v1-Releases/resolve/main/v1-5-pruned-emaonly.ckpt to download the model? It works on my machine.

Thanks.

Mofr77 commented 1 month ago

wget https://huggingface.co/dnwalkup/StableDiffusion-v1-Releases/resolve/main/v1-5-pruned-emaonly.ckpt Hi, yes,it works on my machine too,But how to use the local version instead of using the remote URL? Thanks sooo much!looking forward to your reply.

Junyi42 commented 1 month ago

wget https://huggingface.co/dnwalkup/StableDiffusion-v1-Releases/resolve/main/v1-5-pruned-emaonly.ckpt Hi, yes,it works on my machine too,But how to use the local version instead of using the remote URL? Thanks sooo much!looking forward to your reply.

Based on ChatGPT, you could

  1. Download the model to your local path path/to/local/model: wget https://huggingface.co/dnwalkup/StableDiffusion-v1-Releases/resolve/main/v1-5-pruned-emaonly.ckpt -O /path/to/local/model/v1-5-pruned-emaonly.ckpt
  2. Setup path for ODISE_MODEL_ZOO: export ODISE_MODEL_ZOO=/path/to/local/model.

But I think a easier way is to simply hardcode this line: https://github.com/Junyi42/GeoAware-SC/blob/b7372c8a98fd87b5f1da3e08f6ae20dbb566609e/third_party/ODISE/odise/utils/file_io.py#L89

to return PathManager.get_local_path("path/to/sdv1-5.ckpt", **kwargs)

Please let me know if it works, thanks.

reginehartwig commented 1 month ago

Hi,

Thanks for posing the issue.

Please refer to

https://github.com/Junyi42/GeoAware-SC/blob/b7372c8a98fd87b5f1da3e08f6ae20dbb566609e/third_party/ODISE/odise/utils/file_io.py#L55 on how to setup the local path for the model.

Can you please try the huggingface repo of sd1.5 from another third party? For example, https://huggingface.co/dnwalkup/StableDiffusion-v1-Releases/blob/main/v1-5-pruned-emaonly.ckpt . If that doesn't work, I will try to upload my local copy.

Thanks.

This works for me.

Hi, Thanks for your reply, But this method doesn't work, it still downloads from the original URL

You have to change the path in the installed file_io.py file (which is a file in you conda install path). If you only change it in the repositoryGeoAware-SC/thirdparty/ODISE/odise/utils/file_io.py and do not install it again into your conda install path (done by GeoAware-SC/setup.py), it does still try to download from the previous URL.

Mofr77 commented 1 month ago

wget https://huggingface.co/dnwalkup/StableDiffusion-v1-Releases/resolve/main/v1-5-pruned-emaonly.ckpt Hi, yes,it works on my machine too,But how to use the local version instead of using the remote URL? Thanks sooo much!looking forward to your reply.

Based on ChatGPT, you could

  1. Download the model to your local path path/to/local/model: wget https://huggingface.co/dnwalkup/StableDiffusion-v1-Releases/resolve/main/v1-5-pruned-emaonly.ckpt -O /path/to/local/model/v1-5-pruned-emaonly.ckpt
  2. Setup path for ODISE_MODEL_ZOO: export ODISE_MODEL_ZOO=/path/to/local/model.

But I think a easier way is to simply hardcode this line:

https://github.com/Junyi42/GeoAware-SC/blob/b7372c8a98fd87b5f1da3e08f6ae20dbb566609e/third_party/ODISE/odise/utils/file_io.py#L89

to return PathManager.get_local_path("path/to/sdv1-5.ckpt", **kwargs)

Please let me know if it works, thanks.

/

Hi, Thanks for posing the issue. Please refer to https://github.com/Junyi42/GeoAware-SC/blob/b7372c8a98fd87b5f1da3e08f6ae20dbb566609e/third_party/ODISE/odise/utils/file_io.py#L55

on how to setup the local path for the model. Can you please try the huggingface repo of sd1.5 from another third party? For example, https://huggingface.co/dnwalkup/StableDiffusion-v1-Releases/blob/main/v1-5-pruned-emaonly.ckpt . If that doesn't work, I will try to upload my local copy. Thanks.

This works for me.

Hi, Thanks for your reply, But this method doesn't work, it still downloads from the original URL

You have to change the path in the installed file_io.py file (which is a file in you conda install path). If you only change it in the repositoryGeoAware-SC/thirdparty/ODISE/odise/utils/file_io.py and do not install it again into your conda install path (done by GeoAware-SC/setup.py), it does still try to download from the previous URL.

Hi, Thanks for your reply when i change the download link to "https://huggingface.co/dnwalkup/StableDiffusion-v1-Releases/resolve/main/v1-5-pruned-emaonly.ckpt" in "geo-aware/lib/python3.9/site-packages/odise/utils/file_io.py",it works!