about downloading open_clip_pytorch_model.bin
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?
same questions!!
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.