Use Mxnet do Classification
this code is for https://www.tinymind.cn/competitions/41
ubuntu16.04 mxnet 1.2.0, cuda9, cudnn7, python3
#1.release the data to the current directory
#2.python get_list.py --ratio 0.9 //produce train.lst and val.lst
#3.bash ./downmodel.sh //download the pretrained model, (mxnet model zoo)
#4.bash ./train.sh //start to train
when it converged, chose a good one with high top-5 acc
#python predict.py --epoch 10
then,get a result with 0.99+.
代码比较糙, :)
Do as below:
python get_list.py --ratio 0.9
bash ./downmodel.sh
bash ./train.sh
......chose the best model with good validation top-5 acc, epoch 6 for example.
python predict.py --epoch 6
now,it reached at least 0.991
run: python show.py
then, you can visualize the data after augmentation. And the data is random choose from test set.
Now, just play with it :)
it helps with visualize the lrscheduler, choose a ideal one
for example, in train.py #98 lr_scheduler = mx.lr_scheduler.PolyScheduler(8000,0.01, 3) run: python view_learnpolicy.py --base_lr 0.01 --max_update 8000 --power 3
if there is something wrong, contact me with e-mail: 2120140200@mail.nankai.edu.cn