Investigating Possible Inductive Biases in Local Sparse Attention ViT Architectures Against Traditional CNNs
env2lmod
module load gcc/8.2.0
module load python_gpu/3.8.5
module load cuda/11.3.1
python -m venv venv
source venv/bin/activate
Install the dependencies given in requirements.txt
.
pip install -r requirements.txt
Nvidia Apex is not published in PyPI and has to be installed by following the instructions here.
Change directory to either of {resnet, vit, DemystifyLocalViT} and execute:
./run_train.sh gpu
cd combined_dataset
./run.sh
cd background_dataset
./run.sh
Change directory to either of {resnet, vit, DemystifyLocalViT} and execute:
./run_eval.sh gpu