riotu-lab / deepstream-facenet

Demo app on using Deepstream 5.0 with Facenet
43 stars 13 forks source link

color format error #4

Open shubham-shahh opened 3 years ago

shubham-shahh commented 3 years ago

hello, I have generated the plan file, but when I run the app i get following error

`Creating Source

Creating H264Parser

Creating Decoder

Creating EGLSink

Playing file file:///opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-imagedata-multistream/vidss/faces1.mp4 Adding elements to Pipeline

Linking elements in the Pipeline

Starting pipeline

Using winsys: x11 Opening in BLOCKING MODE 0:00:09.672409736 15961 0x24ebb300 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger: NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() [UID = 2]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-facenet/models/facenet_engine.plan INFO: [Implicit Engine Info]: layers num: 2 0 INPUT kFLOAT input_1:0 160x160x3
1 OUTPUT kFLOAT Bottleneck_BatchNorm/batchnorm_1/add_1:0 128

0:00:09.672614476 15961 0x24ebb300 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger: NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::generateBackendContext() [UID = 2]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-facenet/models/facenet_engine.plan 0:00:09.672660153 15961 0x24ebb300 ERROR nvinfer gstnvinfer.cpp:613:gst_nvinfer_logger: NvDsInferContext[UID 2]: Error in NvDsInferContextImpl::preparePreprocess() [UID = 2]: RGB/BGR input format specified but network input channels is not 3 ERROR: Infer Context prepare preprocessing resource failed., nvinfer error:NVDSINFER_CONFIG_FAILED 0:00:09.744152965 15961 0x24ebb300 WARN nvinfer gstnvinfer.cpp:809:gst_nvinfer_start: error: Failed to create NvDsInferContext instance 0:00:09.744235101 15961 0x24ebb300 WARN nvinfer gstnvinfer.cpp:809:gst_nvinfer_start: error: Config file path: dstest2_sgie1_config.txt, NvDsInfer Error: NVDSINFER_CONFIG_FAILED 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(809): gst_nvinfer_start (): /GstPipeline:pipeline0/GstNvInfer:secondary1-nvinference-engine: Config file path: dstest2_sgie1_config.txt, NvDsInfer Error: NVDSINFER_CONFIG_FAILED `

ArivCR7 commented 2 years ago

Hi @shubham-shahh, I encounter the exact issue. Were you able to fix this?

shubham-shahh commented 2 years ago

follow this