Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.17 KB

README.md

File metadata and controls

41 lines (24 loc) · 1.17 KB

Cattle Interaction Recognition Via Skeleton data

This is a repo for cattle behavior recognition based on skeleton. First, use YOLOX to complete the animal detection, then cut out the area of the corresponding animal and input it to HRNet to complete the skeleton recognition, and finally pack and input the multi frame skeleton information into ST-GCN to complete the action recognition and interaction recognition.

Configure

1、install anaconda(Optional)

2、yolox config, see details at: https://github.com/Megvii-BaseDetection/YOLOX

Download pretrain weight(Dropbox)

object detetion:

skeleton detetion:

action predict:

Use

We use yolox_s model to complete animal detection

Modifying the weight path of st-gcn in script ./ActionEstLoader.py

python tools/top_down_video_det.py -n yolox-s --path <video path> -c <yolox weight> -pose <skeleton detection weight> --save_result --device gpu

train your model(use skeleton):

cd Actionsrecognition
python train.py

Reference

Target Detection: https://github.com/Megvii-BaseDetection/YOLOX

Skeleton Detection: https://github.com/AlexTheBad/AP-10K

Action Recognition: https://github.com/yysijie/st-gcn