Source Code for IEEE BTAS 2019 paper: Palmprint Recognition Using Realistic Animation Aided Data Augmentation.
Dependencies:
- Pytorch
- TensorboardX
- Numpy
- Scipy
- PIL
- OpenCV
The CPD code in the project is from https://github.com/siavashk/pycpd
- Set the data path, the anim_frames path for the dataset in config file.
- Run cpd_transform.py script from the root folder of the project to generate the augmented dataset.
- Change the TRAIN_IMG_DIR in config file to cpd_data/CASIA/flip/ROI/train/ if training with CASIA augmented data for example.
- Change the network to desired model: example inceptionv3 or alexnet
- Change the OUTPUT_PATH appropriately to save the model being trained.
- Run main.py script from the root folder to train the model.
- Set STANDARD_AUGMENT to True and TRANSLATION_ONLY to False for full affine data augmentation.
- Set TRANSLATION_ONLY to True when using non-linearly augmented training data to combine them (NltTrans).
- Please refer to the paper to set other parameters.