Git Product home page Git Product logo

deep-high-resolution-net.tensorflow's Introduction

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

  • python 3.6 or higher
  • TensorFlow 1.11 or higher
  • PyCharm

How to Use

For Training

  • Download the AI Challenger dataset.
  • Convert the images in the AI Challenger dataset (train_images folder) to TFRecords by running the dataset.py. Please make sure that the dataset_root_path you used in the extract_people_from_dataset() function is the path of the AI Challenger dataset you saved in the previous step.
  • Run the train.py!

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 not uploaded. Please email me if you need them.

For Testing

  • Finish the 4 steps in the training.
  • Make sure the dataset name, mode file name are corrected.
  • Run the test.py!

The result images will be saved in the test_img 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

  • Run the evaluate.py.

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

What You Will See

For Training

  • The loss information.
  • The examples of images predicted by the network will be saved into the ./demo_img/ folder.
Epoch Number example image 1 example image 2 example image 3 example image 4
epoch 0
epoch 1
epoch 2
epoch 3

For Testing

  • The result of testing images will be saved into the ./test_img/ floder.

For More

Contact me: [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.