-Pytorch: conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
-Spectral: conda install -c conda-forge spectral
-Torch summary: pip install torchsummary
-TensorFlow: conda install -c conda-forge tensorflow
-Tensorboard_logger: pip install tensorboard_logger
Run:
python -W ignore test.py --model saved-models/AmazonResNet101-run-3.pth.tar --output_file "pred_x.csv" --batch_size 8
For testing in Kaggle:
kaggle competitions submit -c planet-understanding-the-amazon-from-space -f pred_x.csv -m "Run-x"