[ADD] Add a python demo.

This commit is contained in:
ioir123ju
2020-06-17 11:47:00 +08:00
parent 285c77d6dd
commit 15564efdbb
6 changed files with 342 additions and 2 deletions
+6
View File
@@ -183,6 +183,12 @@ rm yolo3_fp32.rt # be sure to delete(or move) old tensorRT files
./test_yolo3 # run the yolo test (is slow)
./demo yolo3_fp32.rt ../demo/yolo_test.mp4 y
```
To run the an object detection demo with python (example with yolov4):
```
python darknetTR.py build/yolo4_fp16.rt --video=demo/yolo_test.mp4
```
In general the demo program takes 4 parameters:
```
./demo <network-rt-file> <path-to-video> <kind-of-network> <number-of-classes> <n-batches> <show-flag>