VideoCrafter icon indicating copy to clipboard operation
VideoCrafter copied to clipboard

about downloading open_clip_pytorch_model.bin

Open leizhu1989 opened this issue 1 year ago • 2 comments

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?

leizhu1989 avatar Feb 23 '24 02:02 leizhu1989

same questions!! q1 q2

kireoxdz avatar Mar 06 '24 07:03 kireoxdz

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.

Henrik-hw avatar Apr 18 '24 06:04 Henrik-hw