Home

Awesome

Computer Vision ToolBox of Pytorch

Install

Install pytorch >= v1.0.0 pip install -r requirment.txt

<br>

Make

cd kps2d_detection/hr_net/lib/ make

cd pose_track/lighttrack/graph/torchlight python setup.py install

<br>

add Environment Variable

vim ~/.bashrc

export PATH=/path/to/cvToolBox:$PATH

export PYTHONPATH=/path/to/cvToolBox:$PYTHONPATH

<br>

Example of Human Bbox Detection

```
from object_detection.yolo_v3.human_detector import load_model
from object_detection.yolo_v3.human_detector import inference
import cv2
im = cv2.imread('data/test.png')
model = load_model()
# return bbox and its probability
inference(im, model)
```
<br>

Example of pose track

cd pose_track/lighttrack/

<p align="center"><img src="pose_track/lighttrack/data/hrnet_result.gif" width="70%" alt="" /></p> <p align="center"><img src="pose_track/lighttrack/data/hrnet_result.gif" width="70%" alt="" /></p>