Classifying Satellite Images of the Amazon Rainforest
Download the Dataset from Planet: Understanding the Amazon from Space on Kaggle. These files/folders are needed for training the model and performing inference:-
- train_v2.csv
- train-jpg.tar
- test-jpg.tar
- test-jpg-additional.tar
We place them in our working directory as shown below:-
├─── AmazonPlanet.ipynb ├─── train_v2.csv ├─── train-jpg ├─── train_0.jpg ├─── train_1.jpg ├─── train_2.jpg ├─── .. ├─── .. ├─── train_40476.jpg ├─── train_40477.jpg └─── train_40478.jpg └─── test-jpg ├─── test_0.jpg ├─── test_1.jpg ├─── .. ├─── .. ├─── test_40667.jpg └─── test_40668.jpg └─── test-jpg-additional ├─── file_0.jpg ├─── file_1.jpg ├─── .. ├─── .. ├─── file_20520.jpg └─── file_20521.jpg
Here, we have used Fastai (1.0.60), and after creating an ImageDataBunch, we finetuned a pre-trained Resnet50 to perform the Multi-label classification task.
Note: The trained_model.pkl file has been uploaded using Git-LFS.