加载om模型出错,ret = steammanager_api.CreateMultipleStreams(pipeline_str)返回6003
收藏回复举报
加载om模型出错,ret = steammanager_api.CreateMultipleStreams(pipeline_str)返回6003
t('forum.solved') 已解决
发表于2023-12-03 09:56:51
0 查看
Begin to initialize Log. 

The output directory of logs file exist. 

WARNING: Logging before InitGoogleLogging() is written to STDERR 

I20231203 17:54:44.368129 138678 FileUtils.cpp:331] The input file is empty 

I20231203 17:54:44.368216 138678 FileUtils.cpp:475] Check Other group permission: Current permission is 4, but required no greater than 0. 

Save logs information to specified directory. 

E20231203 17:54:45.479995 138678 ModelInferenceProcessorDptr.hpp:174] Failed to load offline model data from file. (Calling Function = aclmdlLoadFromFile, Code = 545002, Message = "ACL error, please refer to the document of CANN.")  

E20231203 17:54:45.480659 138678 ModelInferenceProcessor.cpp:42] Failed to init model, the model path is invalidate. (Code = -1, Message = "ACL: general failure")  

E20231203 17:54:45.480737 138678 MxpiTensorInfer.cpp:163] Failed to init model inference. (Code = -1, Message = "ACL: general failure")  

E20231203 17:54:45.480803 138678 MxpiTensorInfer.cpp:96] Init configs failed. (Code = -1, Message = "ACL: general failure")  

E20231203 17:54:45.480850 138678 MxGstBase.cpp:631] Plugin initialize failed. (Code = -1, Message = "ACL: general failure")  

E20231203 17:54:45.481499 138678 MxsmStream.cpp:884] Failed to set the state of the Stream, named: detection. (Code = 6003, Message = "stream change state fail")  

E20231203 17:54:45.481559 138678 MxsmStream.cpp:914] Creates detection Stream failed. (Code = 6003, Message = "stream change state fail")  

E20231203 17:54:45.481606 138678 MxStreamManagerDptr.cpp:548] Create stream(detection) failed. (Code = 6003, Message = "stream change state fail")  

Failed to create Stream, ret=6003 

pipline:

{
    "detection": {
        "stream_config": {
            "deviceId": "0"
        },
        "appsrc0": {
            "props": {
                "blocksize": "409600"
            },
            "factory": "appsrc",
            "next": "mxpi_imagedecoder0"
        },
        "mxpi_imagedecoder0": {
           "props": {
              "deviceId": "0"
          },
            "factory": "mxpi_imagedecoder",
            "next": "mxpi_imageresize0"
        },
        "mxpi_imageresize0": {
            "props": {
                "dataSource": "mxpi_imagedecoder0",
                "resizeType": "Resizer_KeepAspectRatio_Fit",
                "paddingType": "Padding_RightDown",
                "paddingHeight": "416",
                "paddingWidth": "416",
                "paddingColorB": "114",
                "paddingColorG": "114",
                "paddingColorR": "114"
            },
            "factory": "mxpi_imageresize",
            "next": "mxpi_tensorinfer0"
        },
        "mxpi_tensorinfer0": {
            "props": {
                "dataSource": "mxpi_imageresize0",
                "modelPath": "/root/MindStudio-WorkSpace/yolox/python/models/yolox_pre_post.om"
            },
            "factory": "mxpi_tensorinfer",
            "next": "mxpi_objectpostprocessor0"
        },
        "mxpi_objectpostprocessor0": {
            "props": {
                "dataSource": "mxpi_tensorinfer0",
                "postProcessConfigPath":"/root/MindStudio-WorkSpace/yolox/python/models/yolox_eval.cfg",
                "labelPath": "/root/MindStudio-WorkSpace/yolox/python/models/coco.names",
                "postProcessLibPath": "libYoloxPostProcess.so"
            },
            "factory": "mxpi_objectpostprocessor",
            "next": "mxpi_dataserialize0"
        },
         "mxpi_dataserialize0": {
            "props": {
                "outputDataKeys": "mxpi_tensorinfer0"
            },
            "factory": "mxpi_dataserialize",
            "next": "appsink0"
        },
        
        "appsink0": {
            "props": {
                "blocksize": "4096000"
            },
            "factory": "appsink"
        }
    }
}

我要发帖子