()
| 304 | return args |
| 305 | |
| 306 | def main(): |
| 307 | args = parse_args() |
| 308 | |
| 309 | # Create KNNSearchMulti instance |
| 310 | knn_search = KNNSearchMulti( |
| 311 | dstore_path=args.dstore_path, |
| 312 | val_path=args.val_path, |
| 313 | index_path=args.index_path, |
| 314 | output_path=args.output_path, |
| 315 | model_path=args.model_path, |
| 316 | k=args.k, |
| 317 | knn_temp=args.knn_temp, |
| 318 | probe=args.probe, |
| 319 | batch_size=args.batch_size, |
| 320 | knn_gpu=args.knn_gpu, |
| 321 | ignore_first=args.ignore_first, |
| 322 | threshold=args.threshold |
| 323 | ) |
| 324 | |
| 325 | # Process the data |
| 326 | knn_search.process() |
| 327 | |
| 328 | if __name__ == "__main__": |
| 329 | main() |
no test coverage detected