Skip to content

Commit

Permalink
demo
Browse files Browse the repository at this point in the history
  • Loading branch information
yysijie committed Jun 6, 2018
1 parent 9f66f3c commit d64b382
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ backup/*
model/*
*.pt
*.caffemodel
resource/media
cache/

# Byte-compiled / optimized / DLL files
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,10 @@ To visualize how ST-GCN exploit local correlation and local pattern, we compute

Run the demo by this command:
```
python main.py demo --openpose <path to openpose build directory> [--video <path to your video>]
python main.py demo --openpose <path to openpose build directory> [--video <path to your video> --device <gpu0> <gpu1>]
```
A video as above will be generated.


## Data Preparation

We experimented on two skeleton-based action recognition datasts: **Kinetics-skeleton** and **NTU RGB+D**. The experiments on NTU RGB+D
Expand Down
Binary file removed resource/media/BQkGMJD39c8.mp4
Binary file not shown.
Binary file removed resource/media/Kop0sDqOn-c.mp4
Binary file not shown.
Binary file added resource/media/skateboarding.mp4
Binary file not shown.
Binary file added resource/media/ta_chi.mp4
Binary file not shown.
Binary file removed resource/media/zZ9Zb41KNR4.mp4
Binary file not shown.
3 changes: 2 additions & 1 deletion tools/utils/openpose.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ def json_pack(snippets_dir, video_name, frame_width, frame_height, label='unknow
p = Path(snippets_dir)
for path in p.glob(video_name+'*.json'):
json_path = str(path)
frame_id = int(path.stem.split('_')[1])
print(path)
frame_id = int(path.stem.split('_')[-2])
frame_data = {'frame_index': frame_id}
data = json.load(open(json_path))
skeletons = []
Expand Down

0 comments on commit d64b382

Please sign in to comment.