Supported deepstream version:
This docs for dGPU, for jetson using ./JETSON.md
.engine
yolov7-face-detection
folderweights/yolov7-tiny33.pt
python3 export.py --weights ./weights/yolov7-tiny33.pt --img-size 640 --batch-size 1 --dynamic-batch --grid --end2end --max-wh 640 --topk-all 100 --iou-thres 0.5 --conf-thres 0.2 --device 1 --simplify --cleanup --trt
/usr/src/tensorrt/bin/trtexec --onnx=samples/models/Primary_Detector/yolov7-tiny41-nms-trt.onnx --saveEngine=samples/engines/Primary_Detector/yolov7-tiny41-nms-trt.trt --workspace=14336 --fp16 --minShapes=images:1x3x640x640 --optShapes=images:1x3x640x640 --maxShapes=images:4x3x640x640 --shapes=images:1x3x640x640
webface_r50.onnx
from deepinsight/insightface and cleaning onnx file: python3 scripts/onnx_clean.py --onnx-path samples/models/Secondary_Recognition/webface_r50.onnx --image-size 112,112 --batch-size 1 --simplify --dynamic --cleanup --add-norm
/usr/src/tensorrt/bin/trtexec --onnx=samples/models/Secondary_Recognition/webface_r50_norm_dynamic_simplify_cleanup.onnx --saveEngine=samples/engines/Secondary_Recognition/webface_r50_norm_dynamic_simplify_cleanup.trt --workspace=14336 --fp16 --minShapes=input.1:1x3x112x112 --optShapes=input.1:4x3x112x112 --maxShapes=input.1:16x3x112x112 --shapes=input.1:4x3x112x112
uri
in ./samples/configs/deepstream_app.txtdocker pull hiennguyen9874/deepstream-face-recognition:deepstream-6.0.1
docker run --runtime nvidia --rm -it -v $(pwd):/app hiennguyen9874/deepstream-face-recognition:deepstream-6.0.1
python3 scripts/add_face_from_file.py A docs/A.png docs/A2.png
python3 scripts/add_face_from_file.py B docs/B.png docs/B2.png
python3 scripts/add_face_from_file.py C docs/C.png docs/C2.png
bash sources/install.sh
./bin/deepstream-app -c samples/configs/deepstream_app.txt
pip3 install opencv-python numpy scikit-image pycuda pillow matplotlib
python3 scripts/add_face_from_file.py A docs/A.png docs/A2.png
python3 scripts/add_face_from_file.py B docs/B.png docs/B2.png
python3 scripts/add_face_from_file.py C docs/C.png docs/C2.png
sudo bash sources/install.sh
./bin/deepstream-app -c samples/configs/deepstream_app.txt