Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about downloading open_clip_pytorch_model.bin #68

Open
leizhu1989 opened this issue Feb 23, 2024 · 2 comments
Open

about downloading open_clip_pytorch_model.bin #68

leizhu1989 opened this issue Feb 23, 2024 · 2 comments

Comments

@leizhu1989
Copy link

hello!
My service machine does not have an external network, how can I use a proxy to download open_clip_pytorch_model. bin .Is there any other way?

@kireoxdz
Copy link

kireoxdz commented Mar 6, 2024

same questions!!
q1
q2

@Henrik-hw
Copy link

Henrik-hw commented Apr 18, 2024

You can find the path:/home/xxf /anaconda3/envs/videocrafter/lib/python3.8/site-packages/open_clip/pretrained.py
and then find :def download_pretrained_from_hf(
model_id: str,
filename: str = 'open_clip_pytorch_model.bin',
revision=None,
cache_dir: Union[str, None] = None,
):
has_hf_hub(True)
cached_file = "/home/xxf/.cache/clip/open_clip_pytorch_model.bin"
return cached_file

Just like what I did above, change cached_file to the path of your open_clip_pytorch_model.bin file and return the cached_file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants