paper: Dual Path Networks
You can git clone this project and do as follows:
-
Download pretrained model from https://github.com/cypw/DPNs and put the pretrained model under
DPN/model/file. -
I produce two ways of image data reading:
If you want to use .rec file to train your model:
- Change some configuration in
run_train_rec.sh, for example:--epochand--modelare corresponding to the pretrained model,--data-trainis your train.recfile,--save-resultis the train result you want to save,--num-examplesis the number of your training data,--save-nameis the name of final model. - Run
sh run_train_rec.sh
If you want to use .lst file and image to train your model:
- Change some configuration in
run_train_lst.sh, for example:--epochand--modelare corresponding to the pretrained model,--data-trainis your train.lstfile,--image-trainis your train image file,--save-resultis the train result you want to save,--num-examplesis the number of your training data,--save-nameis the name of final model. - Run
sh run_train_lst.sh