mlfoundations / open_clip

An open source implementation of CLIP.
Other
9.93k stars 959 forks source link

How to load Clip-VIT-bigG-14 in local which has two .bin files and can not find any information how to load, thanks!!!!!!! #841

Closed hanggun closed 6 months ago

hanggun commented 6 months ago

解决了,下载了open_clip_model就可以加载了

rwightman commented 6 months ago

Use the https://huggingface.co/laion/CLIP-ViT-bigG-14-laion2B-39B-b160k/blob/main/open_clip_pytorch_model.bin and pass as the pretrained arg.

xpdd123 commented 4 months ago

解决了,下载了open_clip_model就可以加载了

怎么解决的,只要下载这个文件就可以吗?有代码吗