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

fix: mclip cuda device #792

Closed numb3r3 closed 2 years ago

codecov[bot] commented 2 years ago

Codecov Report

Merging #792 (df46102) into main (8681b88) will decrease coverage by 2.28%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #792      +/-   ##
==========================================
- Coverage   84.27%   81.98%   -2.29%     
==========================================
  Files          21       21              
  Lines        1418     1421       +3     
==========================================
- Hits         1195     1165      -30     
- Misses        223      256      +33     
Flag Coverage Δ
cas 81.98% <100.00%> (-2.29%) :arrow_down:

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

Impacted Files Coverage Δ
server/clip_server/model/mclip_model.py 84.21% <100.00%> (+1.35%) :arrow_up:
server/clip_server/model/trt_utils.py 56.04% <0.00%> (-27.48%) :arrow_down:
server/clip_server/model/clip_trt.py 69.38% <0.00%> (-16.33%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us.

ZiniuYu commented 2 years ago

tested and works as desired