• Hardware Platform (Jetson / GPU)
Jetson Orin
• DeepStream Version
6.1.1
• JetPack Version (valid for Jetson only)
5.0.2
• TensorRT Version
8.4.1-1+cuda11.4
Hi, I have a model that was trained with greyscale images with 3 channels… I tried setting model-color-format=2
in my detector config but the application fails.
Error: gst-resource-error-quark: Failed to create NvDsInferContext instance (1): /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(846): gst_nvinfer_start (): /GstPipeline:pipeline0/GstNvInfer:secondary2-nvinference-engine:
Config file path: config_infer_third.txt, NvDsInfer Error: NVDSINFER_CONFIG_FAILED
Exiting app
How can I use videobalance
to convert the image to black and white by setting the saturation to 0.0?
https://gstreamer.freedesktop.org/documentation/videofilter/videobalance.html?gi-language=c
I tried:
videobalance = Gst.ElementFactory.make("videobalance","videobalance")
videobalance.set_property('saturation', 0.0)
pipeline.add(videobalance)
print("Creating pre filter1 \n ")
caps1_gray = Gst.Caps.from_string("video/x-raw(memory:NVMM), format=I420")
#filter1 = Gst.ElementFactory.make("capsfilter", "filter1")
filter1_gray = Gst.ElementFactory.make("capsfilter", "filter1_gray")
if not filter1_gray:
sys.stderr.write(" Unable to get the caps filter1_gray \n")
filter1_gray.set_property("caps", caps1_gray)
pipeline.add(filter1_gray)
nvvidconvert_gray = Gst.ElementFactory.make("nvvideoconvert", "nvvidconvert_gray")
if not nvvidconvert_gray:
sys.stderr.write(" Unable to create nvvidconvert_pre \n")
pipeline.add(nvvidconvert_gray)
...
...
pgie.link(tracker)
tracker.link(nvvidconvert_pre)
nvvidconvert_pre.link(filter1_pre)
filter1_pre.link(sgie1)
#sgie1.link(sgie2)
sgie1.link(videobalance)
videobalance.link(nvvidconvert_gray)
nvvidconvert_gray.link(filter1_gray)
filter1_gray.link(sgie2)
0:00:11.021672980 54491 0x2a5ac4c0 WARN nvinfer gstnvinfer.cpp:2300:gst_nvinfer_output_loop:<secondary1-nvinference-engine> error: Internal data stream error.
0:00:11.021716052 54491 0x2a5ac4c0 WARN nvinfer gstnvinfer.cpp:2300:gst_nvinfer_output_loop:<secondary1-nvinference-engine> error: streaming stopped, reason not-linked (-1)
Error: gst-stream-error-quark: Internal data stream error. (1): /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(2300): gst_nvinfer_output_loop (): /GstPipeline:pipeline0/GstNvInfer:secondary1-nvinference-engine:
streaming stopped, reason not-linked (-1)
Exiting app