VXallset / deep-high-resolution-net.TensorFlow

A TensorFlow implementation of HRNet
MIT License
36 stars 11 forks source link

deep-high-resolution-net.TensorFlow

A TensorFlow implementation of HRNet-32.The dataset used to train the model is the AI Challenger dataset.

Just for fun! A 'famous' actor CXK in China and the keypoints estimated using the HRNet-32.

For more details, please refer to the paper and the dataset.

Environment

How to Use

For Training

Please note that the structure of the HRNet is complicated. I trained the HRNet-32 network using 2 Nvidia Titan V graphics cards. As the limited of the graphics memory(16 GB), the max batch size I used was 2, and it took around 30 hours to finish 1 epoch (189176 steps). The model files were uploaded to Google Drive and Baidu Cloud (Extraction code: 7hym).

For Testing

The result images will be saved in the _testimg folder. It will also generate the distances.npy and the classes.npy file, which will be used to calculate the AP50 and AP75 later.

For Evaluating

It will print the AP50 and AP75 information in the command line.

For Debugging

If you encounter any problems, please try to run the temp.py file to see if it can work properly. It is a simple demo file that can predict the human pose in the cxk.mp4 file. Compare to other scripts, this one is easier to debug.

What You Will See

For Training

Epoch Number example image 1 example image 2 example image 3 example image 4
epoch 0
epoch 1
epoch 2
epoch 3

For Testing

For More

Contact me: vxallset@outlook.com