OFA-Sys / Chinese-CLIP

Chinese version of CLIP which achieves Chinese cross-modal retrieval and representation generation.
MIT License
4.01k stars 418 forks source link

好像包里少项了,按路径找过去确实没找到这东西 #288

Open 2398274582 opened 3 months ago

2398274582 commented 3 months ago

Traceback (most recent call last): File "cn_clip/training/main.py", line 17, in from cn_clip.clip.model import CLIPconvert_weights, convert_state_dict, resize_pos_embed, CLIP ImportError: cannot import name 'CLIPconvert_weights' from 'cn_clip.clip.model' (/home/ma-user/anaconda3/envs/PyTorch-1.8/lib/python3.7/site-packages/cn_clip/clip/model.py)

guanyx6 commented 2 months ago

解决了吗?我也有这个问题