Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
This Repo is based off Marcos one, he didn't want a big Repo so we decided to make my pull request a different Repo to focus on tracking
  • Loading branch information
callmesora authored May 16, 2022
0 parents commit b1cc00f
Show file tree
Hide file tree
Showing 50 changed files with 5,085 additions and 0 deletions.
Binary file added assets/deepstream-gif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/deepstream-pic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions config_infer_primary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[property]
gpu-id=0
net-scale-factor=0.0039215697906911373
model-color-format=0
custom-network-config=yolov4.cfg
model-file=yolov4.weights
model-engine-file=model_b1_gpu0_fp32.engine
#int8-calib-file=calib.table
labelfile-path=labels.txt
batch-size=1
network-mode=0
num-detected-classes=80
interval=0
gie-unique-id=1
process-mode=1
network-type=0
cluster-mode=2
maintain-aspect-ratio=0
parse-bbox-func-name=NvDsInferParseYolo
custom-lib-path=nvdsinfer_custom_impl_Yolo/libnvdsinfer_custom_impl_Yolo.so
engine-create-func-name=NvDsInferYoloCudaEngineGet

[class-attrs-all]
nms-iou-threshold=0.45
pre-cluster-threshold=0.25
25 changes: 25 additions & 0 deletions config_infer_primary_yoloV2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[property]
gpu-id=0
net-scale-factor=0.0039215697906911373
model-color-format=0
custom-network-config=yolov2.cfg
model-file=yolov2.weights
model-engine-file=model_b1_gpu0_fp32.engine
#int8-calib-file=calib.table
labelfile-path=labels.txt
batch-size=1
network-mode=0
num-detected-classes=80
interval=0
gie-unique-id=1
process-mode=1
network-type=0
cluster-mode=2
maintain-aspect-ratio=0
parse-bbox-func-name=NvDsInferParseYolo
custom-lib-path=nvdsinfer_custom_impl_Yolo/libnvdsinfer_custom_impl_Yolo.so
engine-create-func-name=NvDsInferYoloCudaEngineGet

[class-attrs-all]
nms-iou-threshold=0.45
pre-cluster-threshold=0.25
25 changes: 25 additions & 0 deletions config_infer_primary_yoloV5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[property]
gpu-id=0
net-scale-factor=0.0039215697906911373
model-color-format=0
custom-network-config=yolov5n.cfg
model-file=yolov5n.wts
model-engine-file=model_b1_gpu0_fp32.engine
#int8-calib-file=calib.table
labelfile-path=labels.txt
batch-size=1
network-mode=0
num-detected-classes=80
interval=0
gie-unique-id=1
process-mode=1
network-type=0
cluster-mode=2
maintain-aspect-ratio=1
parse-bbox-func-name=NvDsInferParseYolo
custom-lib-path=nvdsinfer_custom_impl_Yolo/libnvdsinfer_custom_impl_Yolo.so
engine-create-func-name=NvDsInferYoloCudaEngineGet

[class-attrs-all]
nms-iou-threshold=0.45
pre-cluster-threshold=0.25
25 changes: 25 additions & 0 deletions config_infer_primary_yolor.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[property]
gpu-id=0
net-scale-factor=0.0039215697906911373
model-color-format=0
custom-network-config=yolor_csp.cfg
model-file=yolor_csp.wts
model-engine-file=model_b1_gpu0_fp32.engine
#int8-calib-file=calib.table
labelfile-path=labels.txt
batch-size=1
network-mode=0
num-detected-classes=80
interval=0
gie-unique-id=1
process-mode=1
network-type=0
cluster-mode=2
maintain-aspect-ratio=1
parse-bbox-func-name=NvDsInferParseYolo
custom-lib-path=nvdsinfer_custom_impl_Yolo/libnvdsinfer_custom_impl_Yolo.so
engine-create-func-name=NvDsInferYoloCudaEngineGet

[class-attrs-all]
nms-iou-threshold=0.5
pre-cluster-threshold=0.25
129 changes: 129 additions & 0 deletions deepstream_app_config-tracker-webcam.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
#kitti-track-output-dir=/xavier_ssd/Tracker_Info
#gie-kitti-output-dir=/xavier_ssd/Tracker_Info



[tiled-display]
enable=1
rows=1
columns=1
width=1280
height=720
gpu-id=0
nvbuf-memory-type=0


#Video Source
[source0]
enable=0
type=3
#uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_qHD_short.mp4
num-sources=1
gpu-id=0
cudadec-memtype=0




#Camera Source
[source0]
enable=0
#Type – 1=CameraV4L2 2=URI 3=MultiURI
type=1
camera-width=640
camera-height=480
camera-fps-n=30
camera-fps-d=1
camera-v4l2-dev-node=0
num-sources=1

#Camera Source
[source1]
enable=0
# Type – 1=CameraV4L2 2=URI 3=MultiURI
type=1
camera-width=640
camera-height=480
camera-fps-n=30
camera-fps-d=1
camera-v4l2-dev-node=1
num-sources=1



[sink0]
enable=1
type=2
sync=0
gpu-id=0
nvbuf-memory-type=0


[osd]
enable=1
gpu-id=0
border-width=5
text-size=15
text-color=1;1;1;1;
text-bg-color=0.3;0.3;0.3;1
font=Serif
show-clock=0
clock-x-offset=800
clock-y-offset=820
clock-text-size=12
clock-color=1;0;0;0
nvbuf-memory-type=0

[streammux]
gpu-id=0
live-source=0
batch-size=1
batched-push-timeout=40000
width=1920
height=1080
enable-padding=0
nvbuf-memory-type=0

[primary-gie]
enable=1
gpu-id=0
interval=2
gie-unique-id=1
nvbuf-memory-type=0
config-file=config_infer_primary_yolor.txt

[tracker]
enable=1
tracker-width=640
tracker-height=384

# -- Change Tracker height for better perform
#tracker-height=640
gpu-id=0
#ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libByteTracker.so
ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
#ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvdcf.so
#ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_DeepSORT.yml
#enable-past-frame=1
enable-batch-process=1


#[img-save]
#enable=1
#output-folder-path=/xavier_ssd/output
#save-img-cropped-obj=0
#save-img-full-frame=1
#frame-to-skip-rules-path=capture_time_rules.csv
#second-to-skip-interval=600
#min-confidence=0.9
#max-confidence=1.0
#min-box-width=5
#min-box-height=5


[tests]
file-loop=0
129 changes: 129 additions & 0 deletions deepstream_app_config-tracker.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
#kitti-track-output-dir=/xavier_ssd/Tracker_Info
#gie-kitti-output-dir=/xavier_ssd/Tracker_Info



[tiled-display]
enable=1
rows=1
columns=1
width=1280
height=720
gpu-id=0
nvbuf-memory-type=0


#Video Source
[source0]
enable=1
type=3
#uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_qHD_short.mp4
num-sources=1
gpu-id=0
cudadec-memtype=0




#Camera Source
#[source0]
#enable=0
# Type – 1=CameraV4L2 2=URI 3=MultiURI
#type=1
#camera-width=640
#camera-height=480
#camera-fps-n=30
#camera-fps-d=1
#camera-v4l2-dev-node=0
#num-sources=1

#Camera Source
[source1]
enable=0
# Type – 1=CameraV4L2 2=URI 3=MultiURI
type=1
camera-width=640
camera-height=480
camera-fps-n=30
camera-fps-d=1
camera-v4l2-dev-node=1
num-sources=1



[sink0]
enable=1
type=2
sync=0
gpu-id=0
nvbuf-memory-type=0


[osd]
enable=1
gpu-id=0
border-width=5
text-size=15
text-color=1;1;1;1;
text-bg-color=0.3;0.3;0.3;1
font=Serif
show-clock=0
clock-x-offset=800
clock-y-offset=820
clock-text-size=12
clock-color=1;0;0;0
nvbuf-memory-type=0

[streammux]
gpu-id=0
live-source=0
batch-size=1
batched-push-timeout=40000
width=1920
height=1080
enable-padding=0
nvbuf-memory-type=0

[primary-gie]
enable=1
gpu-id=0
interval=2
gie-unique-id=1
nvbuf-memory-type=0
config-file=config_infer_primary_yolor.txt

[tracker]
enable=1
tracker-width=640
tracker-height=384

# -- Change Tracker height for better perform
#tracker-height=640
gpu-id=0
#ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libByteTracker.so
ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
#ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvdcf.so
#ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_DeepSORT.yml
#enable-past-frame=1
enable-batch-process=1


#[img-save]
#enable=1
#output-folder-path=/xavier_ssd/output
#save-img-cropped-obj=0
#save-img-full-frame=1
#frame-to-skip-rules-path=capture_time_rules.csv
#second-to-skip-interval=600
#min-confidence=0.9
#max-confidence=1.0
#min-box-width=5
#min-box-height=5


[tests]
file-loop=0
Loading

0 comments on commit b1cc00f

Please sign in to comment.