This repository includes all scripts for the project "Activity Recognition in Low Resolution". I extract skeletons from videos and train skeletons with MS-G3D model. The commands include batch size can be adjusted accroding to GPU memory size.
- git clone https://github.com/mkocabas/VIBE.git
- git clone https://github.com/kenziyuliu/MS-G3D.git
- Follow the "Getting Started" part in [VIBE's README file] (https://github.com/mkocabas/VIBE).
- Installed the [Dependencies] (https://github.com/kenziyuliu/MS-G3D#Dependencies) of MS-G3D.
- mv skeleton.py VIBE/
- mv sk*.sh VIBE/
Change directory to VIBE and run the shell scripts parallelly.
- Modify the "DIR" variable in sk*.sh to specify the video folder path. ( /home/wei/Activity-Recognition/data/input_videos/240/ in the mindgarage server ). e.g. DIR="/home/wei/Activity-Recognition/data/input_videos/240/1-8". I divided videos in 5 folders.
- sh sk.sh (and sh sh sk9.py and more)
Change directory to MS-G3D and start training.
- Follow the README file in MS-G3D to do [data preparation] (https://github.com/kenziyuliu/MS-G3D#Data%20Preparation) work. (Put skeletons to specified folders and python3 ntu120_gendata.py) (Download the pretrained model)
- Run python3 main.py --config ./config/nturgbd120-cross-subject/train_joint.yaml --work-dir work_dir/ --batch-size 16 --forward-batch-size 8 --num-epoch 100 --weights pretrained-models/ntu120-xsub-joint.pt