507
edits
Line 262: | Line 262: | ||
IMAGE_FILE='cat.jpg' | IMAGE_FILE='cat.jpg' | ||
MODEL_LOCATION='graph_inceptionv4.tflite' | MODEL_LOCATION='graph_inceptionv4.tflite' | ||
LABELS=' | LABELS='labels.txt' | ||
GST_DEBUG=inceptionv4:6 gst-launch-1.0 \ | GST_DEBUG=inceptionv4:6 gst-launch-1.0 \ | ||
multifilesrc location=$IMAGE_FILE ! jpegparse ! nvjpegdec ! 'video/x-raw' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! nvvidconv ! queue ! net.sink_model \ | multifilesrc location=$IMAGE_FILE ! jpegparse ! nvjpegdec ! 'video/x-raw' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! nvvidconv ! queue ! net.sink_model \ | ||
Line 283: | Line 283: | ||
VIDEO_FILE='cat.mp4' | VIDEO_FILE='cat.mp4' | ||
MODEL_LOCATION='graph_inceptionv4.tflite' | MODEL_LOCATION='graph_inceptionv4.tflite' | ||
LABELS=' | LABELS='labels.txt' | ||
GST_DEBUG=inceptionv4:6 gst-launch-1.0 \ | GST_DEBUG=inceptionv4:6 gst-launch-1.0 \ | ||
filesrc location=$VIDEO_FILE ! qtdemux name=demux ! h264parse ! omxh264dec ! nvvidconv ! queue ! net.sink_model \ | filesrc location=$VIDEO_FILE ! qtdemux name=demux ! h264parse ! omxh264dec ! nvvidconv ! queue ! net.sink_model \ | ||
Line 302: | Line 302: | ||
CAMERA='/dev/video0' | CAMERA='/dev/video0' | ||
MODEL_LOCATION='graph_inceptionv4.tflite' | MODEL_LOCATION='graph_inceptionv4.tflite' | ||
LABELS=' | LABELS='labels.txt' | ||
GST_DEBUG=inceptionv4:6 gst-launch-1.0 \ | GST_DEBUG=inceptionv4:6 gst-launch-1.0 \ | ||
v4l2src device=$CAMERA ! videoconvert ! videoscale ! queue ! net.sink_model \ | v4l2src device=$CAMERA ! videoconvert ! videoscale ! queue ! net.sink_model \ | ||
Line 321: | Line 321: | ||
CAMERA='/dev/video0' | CAMERA='/dev/video0' | ||
MODEL_LOCATION='graph_inceptionv4.tflite' | MODEL_LOCATION='graph_inceptionv4.tflite' | ||
LABELS=' | LABELS='labels.txt' | ||
gst-launch-1.0 \ | gst-launch-1.0 \ | ||
v4l2src device=$CAMERA ! "video/x-raw, width=1280, height=720" ! tee name=t \ | v4l2src device=$CAMERA ! "video/x-raw, width=1280, height=720" ! tee name=t \ | ||
Line 370: | Line 370: | ||
CAMERA='/dev/video0' | CAMERA='/dev/video0' | ||
MODEL_LOCATION='graph_inceptionv1.tflite' | MODEL_LOCATION='graph_inceptionv1.tflite' | ||
LABELS=' | LABELS='labels.txt' | ||
export CUDA_VISIBLE_DEVICES=-1 | export CUDA_VISIBLE_DEVICES=-1 | ||
GST_DEBUG=inceptionv1:6 gst-launch-1.0 -e rtspsrc location="rtsp://<server_ip_address>:5000/stream1" ! queue ! rtph265depay ! queue ! h265parse ! queue ! omxh265dec ! queue ! nvvidconv ! queue ! net.sink_model inceptionv1 name=net model-location=$MODEL_LOCATION backend=tflite labels="$(cat $LABELS)" | GST_DEBUG=inceptionv1:6 gst-launch-1.0 -e rtspsrc location="rtsp://<server_ip_address>:5000/stream1" ! queue ! rtph265depay ! queue ! h265parse ! queue ! omxh265dec ! queue ! nvvidconv ! queue ! net.sink_model inceptionv1 name=net model-location=$MODEL_LOCATION backend=tflite labels="$(cat $LABELS)" | ||
Line 393: | Line 393: | ||
IMAGE_FILE='cat.jpg' | IMAGE_FILE='cat.jpg' | ||
MODEL_LOCATION='graph_tinyyolov2.tflite' | MODEL_LOCATION='graph_tinyyolov2.tflite' | ||
LABELS=' | LABELS='labels.txt' | ||
GST_DEBUG=tinyyolov2:6 gst-launch-1.0 \ | GST_DEBUG=tinyyolov2:6 gst-launch-1.0 \ | ||
multifilesrc location=$IMAGE_FILE ! jpegparse ! nvjpegdec ! 'video/x-raw' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! nvvidconv ! queue ! net.sink_model \ | multifilesrc location=$IMAGE_FILE ! jpegparse ! nvjpegdec ! 'video/x-raw' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! nvvidconv ! queue ! net.sink_model \ | ||
Line 409: | Line 409: | ||
VIDEO_FILE='cat.mp4' | VIDEO_FILE='cat.mp4' | ||
MODEL_LOCATION='graph_tinyyolov2.tflite' | MODEL_LOCATION='graph_tinyyolov2.tflite' | ||
LABELS=' | LABELS='labels.txt' | ||
GST_DEBUG=tinyyolov2:6 gst-launch-1.0 \ | GST_DEBUG=tinyyolov2:6 gst-launch-1.0 \ | ||
filesrc location=$VIDEO_FILE ! qtdemux name=demux ! h264parse ! omxh264dec ! nvvidconv ! queue ! net.sink_model \ | filesrc location=$VIDEO_FILE ! qtdemux name=demux ! h264parse ! omxh264dec ! nvvidconv ! queue ! net.sink_model \ | ||
Line 438: | Line 438: | ||
[[File:TinyYolo barber chair label.png|center|thumb|tinyYolo barber chair by tinyYolo]] | [[File:TinyYolo barber chair label.png|center|thumb|tinyYolo barber chair by tinyYolo]] | ||
<noinclude> | <noinclude> | ||
{{GstInference/Foot|Example pipelines/PC|Example pipelines/TX2}} | {{GstInference/Foot|Example pipelines/PC|Example pipelines/TX2}} | ||
</noinclude> | </noinclude> |
edits