Trainable ResNet50 using Python3.5 + Tensorflow
DataSet: Cross-Age Celebrity Dataset(CACD)
- Run TrainResNet.py
- Label and Image Name are loaded from "./label/label_1200.npy" and "./label/name_1200.npy"
- Label is range from [1, LABELSNUM]
- Set data_path to be None, if it is the frist time you Train. and set create_npy of load_all_image(nameList, h, w, c, parentPath, create_npy = False) to be True.
- Set model_path to be None, if you train a network from scratch.
- All trained model will be saved in ./model/XXX
- Run TestResNet.py
- Set data_path to be the model you use.
- The feature will be saved as .mat
- The "./label/label.npy" and "./label/name.npy" contain all 160,000+ images from 2000 identities.
- LABELSNUM should be the same as training part, otherwise the Network cannot be correctly initialized.