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