Skip to content

model-collapse/YoloRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YoloRT

The project deploys the yolov3 model on TensorRT for an application of people analytics. A Inception-based activity detection model is also included. This deployment is also optimized for embedded artifical intellegence platform, especially the Jetson Seroes ---- Nvidia targra-based GPU computation unit.

detection example

Model conversion

Till the end of 2019, there is still no stable version of YoloV3 model other than Darknet. The model used here were trained using Darknet(link). The project implements a translation tool which converts the model file directly from Darket format into tensorRT's TRT format. Most of the code was inpired by the Nvidia DeepStreamlink which includes a implementation of YoloV2.
Just run

make convert_to_trt
./convert_to_trt

to do the conversion. Note that there's no commandline arguments here, please change the input/output file path in the cvt.cpp.

Model deployment

The main program can be built and run with

make yolo_detection
./yolo_detection

All the configurations are given in a configuration file named cfg.ini locatd in the same path of the executable. Here is a example of cfg.ini

[MQTT]
address=your-mqtt-broker-ip
client_name=name-your-mqtt-client
clean_session=clean-session-flag[true or false]
in_topic=the-topic-to-accquire-image
out_topic=the-topic-to-output-results

[YoloCFG]
model_file=yolo-detection-file
class_thres=0.15
nms_thres=0.45

[ActCFG]
model_file=activity-detection-model-file
name_file=name-list-file-of-activities
batch_size=4
ext_scale=0.4

Welcome to post any issue or question and PRs as well. Contact [email protected] for more info.

About

deploying yolov3 people counting model on TensorRT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published