Skip to content

Commit

Permalink
fix: download bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
景子昊 authored and 景子昊 committed Jan 22, 2024
1 parent ff49880 commit bc722cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions server/clip_server/model/pretrained_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def download_model(
os.makedirs(target_folder, exist_ok=True)
filename = os.path.basename(url)
filename = filename.split('?')[0]
if filename.split('.')[-1] == 'onnx':
filename = filename.split('-')[-1]

download_target = os.path.join(target_folder, filename)

Expand Down
2 changes: 1 addition & 1 deletion server/clip_server/torch-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ executors:
jtype: CLIPEncoder
metas:
py_modules:
- clip_server.executors.clip_torch
- clip_server.executors.clip_onnx
timeout_ready: 3000000
replicas: 1

0 comments on commit bc722cd

Please sign in to comment.