erikbern / ann-benchmarks

Benchmarks of approximate nearest neighbor libraries in Python
http://ann-benchmarks.com
MIT License
4.98k stars 748 forks source link

"Nothing to run" when specifying algorithm parameter #555

Open Hillier98 opened 1 week ago

Hillier98 commented 1 week ago

Hi, whenever I try to specify an algorithm parameter I get the following error:

$ python3 run.py --algorithm faiss_hnsw --dataset mnist-784-euclidean
2024-11-13 13:13:19,992 - annb - INFO - running only faiss_hnsw
Traceback (most recent call last):
  File "/home/test/ann-benchmarks/run.py", line 7, in <module>
    main()
  File "/home/test/ann-benchmarks/ann_benchmarks/main.py", line 344, in main
    raise Exception("Nothing to run")
Exception: Nothing to run
$ python3 run.py --algorithm faiss_hnsw
2024-11-13 13:13:26,071 - annb - INFO - running only faiss_hnsw
Traceback (most recent call last):
  File "/home/test/ann-benchmarks/run.py", line 7, in <module>
    main()
  File "/home/test/ann-benchmarks/ann_benchmarks/main.py", line 344, in main
    raise Exception("Nothing to run")
Exception: Nothing to run

However, if I disable the algorithms I don't want to test in the config.yml files and then I just run $ python3 run.py --dataset mnist-784-euclidean or $ python3 run.py, that works. So I think there's a bug; I just thought it may be useful to report it.

maumueller commented 1 day ago

Thanks @Hillier98, I can reproduce this and will look into it.