Giter VIP home page Giter VIP logo

skeletongcn's Introduction

Skeleton Convolution Network(SCN) based on the Deep Graph Library(DGL)

In this repository, I am trying to implement simple skeleton based action recognition using Graph Convolution Network(GCN)[1] with the support of Deep Graph Library(DGL)[2].


About the database

I evaluate the code on the NTU RGB+D database[3]. The original skeleton data is saved as string in the txt files, which need to be parsed while loading data. To speed up the loading, I coded a script in tools/ntu_read_skeleton.py to transform the skeleton data into numpy.narray. Each sample is named following the rule:

'S{:0>3}C{:0>3}P{:0>3}R{:0>3}A{:0>3}.skeleton.npy'.format(setup_id, camera_id, person_id, repeat_id, action_id)

You can generally load the sample and index the sample like:

import numpy as np
sample = np.load(file_name).item()
mat_0 = sample['body0'] # first actor
mat_1 = sample['body1'] # second actor

There are two sample instances in the folder data_samples/ for a better understand of the data format.


Problems

  • 4/24, 2019: The network cannot converge. The gradient of the GCN seems not change.
  • 4/24, 2019: The network can converge now but still doesn't converge well. The GPU usage is low, maybe the problem of DataLoader design.
  • 5/9, 2019: referring the design in STGCN[4] and have a better network and software framework designing now!

Reference

[1]. Kipf T N, Welling M. Semi-supervised classification with graph convolutional networks[J]. arXiv preprint arXiv:1609.02907, 2016.

[2]. https://github.com/dmlc/dgl

[3]. https://github.com/shahroudy/NTURGB-D

[4]. https://github.com/yysijie/st-gcn

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.