Git Product home page Git Product logo

chinesetrafficpolicepose's Introduction

ChineseTrafficPolicePose is a network that classify 8 kinds of Chinese traffic police commanding poses by analyzing visual information.

ChineseTrafficPolicePose 是一个仅依靠视觉信息区分8种**交警指挥手势的网络

This version is Deprecated! 这个版本不推荐使用!

This code runs under tensorflow 1.4, it's hard to build now because Tensorflow has changed it's API a lot. A pytorch version of police gesture recognizer is being maintained with pretrained models available at:

基于pytorch的、有预训练模型的版本:


Following instructions are deprecated. It's used to support the paper:

以下代码已废弃,仅为论文提供支撑材料:

https://doi.org/10.1016/j.neucom.2019.07.103

Police Gesture Dataset

We publish the Police Gesture Dataset, which contains the videos of Chinese traffic police commanding gestures, and ground truth gesture labels for each video frame.

Police Gesture Dataset Download link: Google Drive

Police Gesture Recognizer

Notice: This gif is outdated. current version support prediction for FULL BODY, include legs. Check the videos in our dataset for examples of supported videos.

Watch Videos:

Environment

  • Only support Python3
  • Use Tensorflow with GPU support

Training

  • Download keypoint dataset from AI Challenger (~20GB).
  • Rename the downloaded 4 folders to "train", "test_a", "test_b", "val".
  • Extract downloaded dataset to parameters.TRAIN_FOLDER. You may change the content of this parameter according to your path.
  • Run python3 PAF_train.py to train the keypoint network.
  • Download our Traffic Police Gesture dataset (~2GB) according to Dataset section.
  • Extract .csv files to dataset/csv_train and dataset/csv_test.
  • Extract .mp4 files to dataset/policepose_video.
  • Run python3 PAF_detect.py dataset/policepose_video -a to parse videos to skeletal data.
  • Run python3 rnn_train.py to train LSTM using labels from dataset/csv_train and skeletal data from ./dataset/gen/rnn_saved_joints.
  • Run python3 rnn_detect.py -p to predict test videos using name list from dataset/csv_test and skeletal data from ./dataset/gen/rnn_saved_joints.
  • Run Python3 rnn_detect.py -e to print Edit Distance of predicted labels with ground truth labels from dataset/csv_test.

chinesetrafficpolicepose's People

Contributors

acraclobitt avatar zc402 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

chinesetrafficpolicepose's Issues

模型和数据集问题

您好,您可以把训练好的模型开源吗,可以用来看看实际的效果,或者说您能不能把ai challenger的关键点数据集放到网盘上,因为官网不能下载了已经。

你好,希望能请教一下LSTM 网络中数据输入的问题。

你好,由于我没有下载到用来训练关键点提取网络的数据,因此我自己实现了一个openpose网络,(使用github上已经训练好的网络)。目前我通过detect函数已经获取到了每一帧的关键点坐标,并且以(17×2)的形式保存了每一帧的关键点。此时我想训练你提供的LSTM 网络,因此想请教一下你的npy文件中的数据是以什么样的形式存储的呢?

Read the skeletal data

I am new to this topic and I would like to read the skeletal data from the generated folder. I opened it with:
import pickle
dir = /generated/train/001.pkl
with open(dir, 'rb') as f:
coodrs = pickle.load(f)
I got error as below. If anyone know please give me a hand

ModuleNotFoundError: No module named 'constants.enum_keys'; 'constants' is not a package
I knew that it had somethings related to the folder constants but I didn't know how to fix it.

分类网络训练的问题

训练RNN的数据就一个30分钟自己拍的一个完整视频数据吗?还是要每个动作都有单独的视频数据

请问有参考的论文吗?

如果没有参考的论文,那请问这个项目的算法流程大致是什么呢?这样我看代码能快一点,谢谢了!

数据集的问题

您好,我在寻找您的AI Challenger上面的数据集的时候,因为官网不让下载了,一直没有找到test_b这个测试集,我在网上只找到了train、val、和test_a,麻烦您有时间的话,可以上传一下test_b的数据集吗,谢谢

程序数据集问题

AI Challenger中的dataset在程序中运行用到了吗,您说的parameters.TRAIN_FOLDER是指AI challenger中的呢,还是您给的dataset中的数据呢

TensorFlow版本问题

您好,我想问问TensorFlow版本会影响这个程序吗,因为我换了cuda版本,tf版本也升了,就会出现进程不动,也不报错的情况 。

程序运行问题

PAF网络和rnn网络都需要先训练吗?有没有训练好的模型,我可以用来跑个demo看看效果?
如果有已经训练好的模型,怎么跑rnn网络测试我自己录的视频?
rnn网络输入数据具体格式以及PAF输出skeleton data预处理能介绍一下吗?

运行问题

请问这个程序怎么运行?有详细的步骤吗?

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.