Using winsys: x11
ERROR: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/apps/DeepStream-Yolo/niaodao_best.engine open error
0:00:01.676199753 4319 0x347bc180 WARN nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1889> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/apps/DeepStream-Yolo/niaodao_best.engine failed
0:00:01.676355208 4319 0x347bc180 WARN nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1996> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/apps/DeepStream-Yolo/niaodao_best.engine failed, try rebuild
0:00:01.676388840 4319 0x347bc180 INFO nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1914> [UID = 1]: Trying to create engine from model files
terminate called after throwing an instance of ‘std::out_of_range’
what(): map::at
Aborted
这个原因可能是由于你训练时使用的配置文件和你部署时候的配置文件使用的不一样导致的,我个人是因为训练时配置models/yolov5s.yaml的时候忘记改这个80成自己的类别数目,这个问题从训练的时候注意以下, 做好配置就好了
版权声明:本文为CSDN博主「帅殿天下」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/shuai_yue/article/details/122192960
暂无评论