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

通过pip安装的cn_clip库方法load_from_name不能加载本地模型 #342

Open
qiuchen001 opened this issue Aug 8, 2024 · 1 comment

Comments

@qiuchen001
Copy link

qiuchen001 commented Aug 8, 2024

我在一个新的项目中,使用pip install cn_clip安装了cn_clip,当我尝试加载本地模型时,却发现load_from_name无法加载本地模型

github上的cn_clip中的load_from_name方法:
image
pip安装的cn_clip中的load_from_name方法:
image
pip安装的cn_clip基本信息:

Name: cn-clip
Version: 1.5.1
Summary: the Chinese version of CLIP.
Home-page: https://github.com/OFA-Sys/Chinese-CLIP
Author: OFA-Sys
Author-email:
License:
Location: e:\playground\ai\clip-dev\text_image_search\venv\lib\site-packages
Requires: lmdb, numpy, six, timm, torch, torchvision, tqdm
Required-by:

@qiuchen001 qiuchen001 changed the title 通过pip安装的cn_clip不能加载本地模型 通过pip安装的cn_clip库方法load_from_name不能加载本地模型 Aug 9, 2024
@qiuchen001
Copy link
Author

cn_clip
This folder can be copied to the desired project to temporarily fix the problem。

But this is not a permanent solution, hopefully the project team can synchronize the updates in the pip repo soon!

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

1 participant