Code to reproduce the results presented in 'Learning Distance Estimators from Pivoted Embeddings of Metric Objects'.
-
Get and prepare the data (instructions here)
-
pip install -r requirements.txt
-
python train_all.py yfcc100m-hybridfc6
The train_all.py
script adopts Ray Tune to handle and parallelize runs.
You should modify the script and adjust the parameters in ray.init()
and tune.run()
to your resources and desired parallelism.