TencentARC / PhotoMaker

PhotoMaker
https://photo-maker.github.io/
Other
8.63k stars 676 forks source link

Fail on downloading model from huggingface.co #49

Closed chengkeli closed 5 months ago

chengkeli commented 5 months ago

Thanks a lot for releasing code and models for such an amazing research!

I have been trying to run the code but experiencing following error: ''' requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/release_model/resolve/main/photomaker-v1.bin '''

It looks like I fail download model from huggingface repo. My question is I have successfully download your model through ''' photomaker_path = hf_hub_download(repo_id="TencentARC/PhotoMaker", filename="photomaker-v1.bin", repo_type="model") ''' to 'HuggingfaceCache/hub', may I ask if I could use that model directly?

I am new to huggingface. I really anticipate your reply and experience your masterpiece.

chengkeli commented 5 months ago

I find the solution is rather simple. You just need to put full path of download model under variable 'photomaker_path'...