input_mask
was introduced to zero the invalid keypoints. For example, skirt has 4 valid keypoints: waistband_left
, waistband_right
, hemline_left
and hemline_right
. In input_mask
, only those valid masks are 1.0 , while other 20 masks are set as zero.data
: folder to store training and testing images and annotationstrained_models
: folder to store trained models and logssubmission
: folder to store generated submission for evaluation.src
: folder to put all of source code.src/data_gen
: code for data generator including data augmentation and pre-processsrc/eval
: code for evaluation, including inference and post-processing.src/unet
: code for cnn model definition, including train, fine-tune, loss, optimizer definition.src/top
:top level code for train, test and demo. data/train
: data used as train. data/test
: data used for test data/resnet101_weights_tf.h5
.python train.py --category all --epochs 30 --network v11 --batchSize 3 --gpuID 2
trained_models/all/xxxx
, i.e trained_models/all/2018_05_23_15_18_07/
val.log
python train.py --gpuID 2 --category all --epochs 30 --network v11 --batchSize 3 --resume True --resumeModel /path/to/model/start/with --initEpoch 6
modelpath
and use that to generate submission
python test.py --gpuID 2 --modelpath ../../trained_models/all/xxx --outpath ../../submission/2018_04_19/ --augment True
The submission will be saved as submission.csv
1ae2
) or GoogleDrivetrained_models/all/fashion_ai_keypoint_weights_epoch28.hdf5
python demo.py --gpuID 2 --modelfile ../../trained_models/all/fashion_ai_keypoint_weights_epoch28.hdf5