Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion benchs/bench_all_ivf/cmp_with_scann.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def aa(*args, **kwargs):
'cat /proc/cpuinfo | grep ^"model name" | tail -1'
)

cache_dir = args.base_dir + "/" + args.db + "/"
cache_dir = os.path.realpath(os.path.join(args.base_dir, os.path.basename(args.db))) + "/"
if not cache_dir.startswith(os.path.realpath(args.base_dir) + "/"):
raise ValueError(f"Invalid db path: {args.db!r}")
k = args.k
nrun = args.nrun

Expand Down