jina-ai / clip-as-service

πŸ„ Scalable embedding, reasoning, ranking for images and sentences with CLIP
https://clip-as-service.jina.ai
Other
12.48k stars 2.07k forks source link

feat: add cn clip model #888

Closed Hippopotamus0308 closed 1 year ago

Hippopotamus0308 commented 1 year ago

Using cn clip model from https://github.com/OFA-Sys/Chinese-CLIP

Namely,

ZiniuYu commented 1 year ago

@Hippopotamus0308 lint failed, please check your commit messages (including pr title) πŸ™‡

codecov[bot] commented 1 year ago

Codecov Report

Merging #888 (f4dce2b) into main (8a576c5) will decrease coverage by 11.48%. The diff coverage is 68.42%.

@@             Coverage Diff             @@
##             main     #888       +/-   ##
===========================================
- Coverage   83.08%   71.60%   -11.49%     
===========================================
  Files          22       23        +1     
  Lines        1531     1567       +36     
===========================================
- Hits         1272     1122      -150     
- Misses        259      445      +186     
Flag Coverage Ξ”
cas 71.60% <68.42%> (-11.49%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Ξ”
server/clip_server/model/tokenization.py 74.41% <41.66%> (-13.47%) :arrow_down:
server/clip_server/model/cnclip_model.py 77.27% <77.27%> (ΓΈ)
server/clip_server/model/clip_model.py 92.59% <100.00%> (+0.92%) :arrow_up:
server/clip_server/model/pretrained_models.py 98.43% <100.00%> (+0.02%) :arrow_up:
server/clip_server/executors/clip_tensorrt.py 0.00% <0.00%> (-94.60%) :arrow_down:
server/clip_server/model/clip_trt.py 0.00% <0.00%> (-85.72%) :arrow_down:
server/clip_server/model/trt_utils.py 0.00% <0.00%> (-83.52%) :arrow_down:
server/clip_server/model/clip_onnx.py 87.30% <0.00%> (+22.22%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.