If you're using a GPU, run:
./install_gpu.sh
Otherwise, use:
./install_cpu.sh
python3 train.py +selected_model/mnist_collage=distance_aware_self_attention +experiment=mnist_collage
python3 train.py +selected_model/mnist_collage=distance_aware_self_attention +experiment=mnist_collage_inverse
python3 train.py +selected_model/camelyon16=distance_aware_self_attention
You can use the option device=0
to use GPU 0. Full list of options is available at conf/config.yaml
. We use hydra for configuration management.
See the YAML files in conf/selected_model/mnist_collage_ablations
.
Run ./run_trials_for_selected_models_cpu.sh
to run all the ablations (set selected_model_type="mnist_collage_ablations"
in the shell script).