A pytorch implementation of GaitGAN: Invariant Gait Feature Extraction Using Generative Adversarial Networks.
Yu, Shiqi, et al. "Gaitgan: invariant gait feature extraction using generative adversarial networks." Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops. 2017.
To train the model, put the CASIA-B dataset silhoutte data under repository Then goto src dir and run
python3 train.py
The model will be saved into the execution dir every 500 iterations. YOu can change the interval in train.py.
python3 -m visdom.server 5274
or any port you like (change the port in train.py and test.py)http://localhost:5274
You will see the loss curve as well as the image examples.After 19k iterations, the results(every 3x1 block shows the generated side view, ground truth side view and the input view GEI in order):
the loss curve is:
python3 test.py
http://localhost:5274
You will see the results on the test set.After 19k iterations, some of the results:
The codes for recognition are also provided.
The dataset setting is identical to the paper, while we only test ProbeMN here.
mkdir transformed_28500
python3 generate.py
python3 knn_class.py
, you'll get the average accuracy with KNN(k=1) on ProbeMN.python3 knn_class_per_angle.py
, you'll get the results for different Gallery views and Probe views.