举报
在执行 mask_rcnn_demo.exe 时,出现 Cannot find blob with name: DetectionOutput 错误,通常是因为模型转换过程中输出层的名称不匹配,或者模型结构在转换过程中发生了变化。以下是一些可能的解决方案和排查步骤:
mo.py 脚本来转换模型,并使用 --output 参数指定输出层的名称。mask_rcnn_demo.exe 命令-detection_output_name 参数。例如,如果输出层名称是 6849/sink_port_0,则命令应为:mask_rcnn_demo.exe -i D:/hqx/yolact/test_Color.jpg -m D:/hqx/mask_rcnn_R_50_FPN_1x.xml -detection_output_name=6849/sink_port_06849/sink_port_0 也不起作用,尝试其他可能的输出层名称。mo.py --input_model D:/hqx/mask_rcnn_R_50_FPN_1x.onnx --output_dir D:/hqx --output=DetectionOutput或者,如果输出层名称不同,替换 DetectionOutput 为实际的输出层名称。
假设模型的输出层名称是 detection_output,你可以尝试以下命令:
mask_rcnn_demo.exe -i D:/hqx/yolact/test_Color.jpg -m D:/hqx/mask_rcnn_R_50_FPN_1x.xml -detection_output_name=detection_output通过以上步骤,你应该能够找到并解决 Cannot find blob with name: DetectionOutput 的问题。如果问题仍然存在,可能需要进一步调试模型转换和执行的细节。
举报
更多回帖