NVIDIA-AI-IOT / deepstream_tao_apps

Sample apps to demonstrate how to deploy models trained with TAO on DeepStream
MIT License
377 stars 97 forks source link

nvinfer gstnvinfer.cpp:676:gst_nvinfer_logger:<secondary2-nvinference-engine> NvDsInferContext[UID 3]: Error in NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:2126> [UID = 3]: build engine file failed #93

Open rupesh-chaudhari-automatonai opened 6 months ago

rupesh-chaudhari-automatonai commented 6 months ago

I am exploring the NVIDIA-AI-IOT/deepstream_python_apps and I was running the deepstream_launchpad.ipynbjupyter notebook and got the below error at the time of exhicuting last Cell i.e, #################################################################### print("Starting pipeline \n") pipeline.set_state(Gst.State.PLAYING) try: loop.run() except: pass pipeline.set_state(Gst.State.NULL) ####################################################################

######### ERROR#############

WARNING: ../nvdsinfer/nvdsinfer_model_builder.cpp:1487 Deserialize engine failed because file path: /deepstream_python_apps/notebooks/configs/../../../../samples/models/Secondary_VehicleTypes/resnet18_vehicletypenet.etlt_b16_gpu0_int8.engine open error 0:00:04.467701746 1459327 0x5b9e5f55cc90 WARN nvinfer gstnvinfer.cpp:679:gst_nvinfer_logger: NvDsInferContext[UID 3]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() [UID = 3]: deserialize engine from file :/deepstream_python_apps/notebooks/configs/../../../../samples/models/Secondary_VehicleTypes/resnet18_vehicletypenet.etlt_b16_gpu0_int8.engine failed 0:00:04.486737223 1459327 0x5b9e5f55cc90 WARN nvinfer gstnvinfer.cpp:679:gst_nvinfer_logger: NvDsInferContext[UID 3]: Warning from NvDsInferContextImpl::generateBackendContext() [UID = 3]: deserialize backend context from engine from file :/deepstream_python_apps/notebooks/configs/../../../../samples/models/Secondary_VehicleTypes/resnet18_vehicletypenet.etlt_b16_gpu0_int8.engine failed, try rebuild 0:00:04.486970699 1459327 0x5b9e5f55cc90 INFO nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger: NvDsInferContext[UID 3]: Info from NvDsInferContextImpl::buildModel() [UID = 3]: Trying to create engine from model files NvDsInferCudaEngineGetFromTltModel: Failed to open TLT encoded model file /deepstream_python_apps/notebooks/configs/../../../../samples/models/Secondary_VehicleTypes/resnet18_vehicletypenet.etlt ERROR: ../nvdsinfer/nvdsinfer_model_builder.cpp:728 Failed to create network using custom network creation function ERROR: ../nvdsinfer/nvdsinfer_model_builder.cpp:794 Failed to get cuda engine from custom library API 0:00:08.683768889 1459327 0x5b9e5f55cc90 ERROR nvinfer gstnvinfer.cpp:676:gst_nvinfer_logger: NvDsInferContext[UID 3]: Error in NvDsInferContextImpl::buildModel() [UID = 3]: build engine file failed double free or corruption (!prev) Aborted (core dumped)