Finetune networks in pytorch
- imgaug
- tqdm
-
Use
gen_dataset.pyto generate datasets in csv files from data folders.The data were located in seperate folders according to classes.
The generated datasets are
train.csvandvalid.csv. -
Use
finetune.shto train networks according to generated datasets../finetune.sh 1to train networks using GPU 1.
-
Use
inference.pyto test some data with the trained model. -
Use
check_train.pyto check the trainning dataset and fetch out the unconsistent data.
-
Use
gen_dataset.pyto generate datasets in csv files from data folders. -
Use
gen_and_save_images.pyto test the dataset and dataloader from csv files. -
Use
gen_new_data.pyto generate a csv from a folder to test the files. -
Use
fetch_data_accordingto_error.pyto fetch error data from the trainning or validation data.
-
ResNet
ResNet 50, 101 and 152 from official repositories.
-
Se_ResNeXt
senet.pyis the model definition,train_se_resnext.pyandtrain_se_resnext.share used to train models. -
PNasNet
pnasnet.pyis the model definition,train_pnasnet.pyandtrain_pnasnet.share used to train models.
-
Decay according to steps
finetune.pyandfinetune.sh. -
Reduce on Plateau
finetune_rop.pyandfinetune_rop.sh.
Some codes were borrowed and modified from pretrained-models.pytorch and pytorch-cifar.