Skip to content

Commit

Permalink
fix: trt file path
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiniuYu committed Aug 3, 2022
1 parent 2c8629d commit d8162d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/clip_server/model/clip_trt.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def __init__(
super().__init__(name)

if name in _MODELS:
cache_dir = os.path.expanduser(f'~/.cache/clip/{name.replace("/", "-")}')
cache_dir = os.path.expanduser(
f'~/.cache/clip/{name.replace("/", "-").replace("::", "-")}'
)

self._textual_path = os.path.join(
cache_dir,
Expand Down

0 comments on commit d8162d2

Please sign in to comment.