We can run multiple concurrent processes, with identical models running on all, or a different model on each. Here are two example pipelines, each running a ResNet50 model. Spawn these two commands concurrently from two terminals.These two pipelines will run for 500 frames before they exit.
Note
The following JSON examples are only samples. Ensure model-path is set to point to your available model before running.
gst-launch-1.0 \
multifilesrc location=<INPUT>.nv12 loop=true ! \
rawvideoparse format=nv12 width=<INPUT_WIDTH> height=<INPUT_HEIGHT> ! queue ! \
vvas_xinfer config-file=/etc/vvas/configs/infer/resnet50_vart.json ! queue ! \
vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json ! vvas_xoverlay ! queue ! identity eos-after=501 ! \
fakesink -v
Note
The following JSON examples are only samples. Ensure model-path is set to point to your available model before running.
gst-launch-1.0 \
multifilesrc location=<INPUT>.nv12 loop=true ! \
rawvideoparse format=nv12 width=<INPUT_WIDTH> height=<INPUT_HEIGHT> ! queue ! \
vvas_xinfer config-file=/etc/vvas/configs/infer/resnet50_vart.json ! queue ! \
vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json ! vvas_xoverlay ! queue ! identity eos-after=501 ! \
fakesink -v