Code for AI CUP 2020 Mango Image Recognition Challenge: Grade Classification and Defective Classification
pytorch torchvision cudatoolkit=10.1 rfconv - Put your data (C1-P1_Train Dev_fixed) in this assignment folder 406410035_hw2_v1/
- Change the path in options.py: ROOTPATH=[your absolute path to this assignment folder]
- install all the requirements if you haven't yet by:
while read requirement; do conda install --yes $requirement; done < requirement.txt - execute the program:
python train.pyif you have any other specification you can see the options in options.py to set in the command - after executaion record.txt show the best results every 50 epochs
- the checkpoint.pth will be save in the directory checkpoint/ every 50 epochs
We can get 84% accuracy using EfficientNet.