pb转为onnx,调用报错INVALID_GRAPH

C.check_model(model.SerializeToString())
onnx.onnx_cpp2py_export.checker.ValidationError: No Op registered for CropAndResize with domain_version of 9

onnxruntime.capi.onnxruntime_pybind11_state.InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : Load model from D:\workSpace\C#Projects\zivisionSoft\ZiVisionWpf\ZivisionApp\bin\Debug\netcoreapp3.1\trainval_netv4\output\default\1_train\models\model.onnx failed:This is an invalid model. In Node, ("resnet_v1_101_3/rois/non_max_suppression/NonMaxSuppressionV3", NonMaxSuppressionV3, "", -1) : ("resnet_v1_101_3/rois/stack_1_Concat__1299:0": tensor(float),"resnet_v1_101_3/rois/Reshape:0": tensor(float),"resnet_v1_101_3/rois/non_max_suppression/NonMaxSuppressionV3/max_output_size:0": tensor(int32),"resnet_v1_101_3/rois/non_max_suppression/iou_threshold:0": tensor(float),"resnet_v1_101_3/rois/non_max_suppression/score_threshold:0": tensor(float),) -> ("resnet_v1_101_3/rois/non_max_suppression/NonMaxSuppressionV3:0",) , Error No Op registered for NonMaxSuppressionV3 with domain_version of 9


model = onnx.load(r"D:\workSpace\pythonSpace\FSRCNNv7\FSRCNN2\output\default\1_train\models\model.onnx")
    
#OSError: [Errno 22] Invalid argument:

#Context: Bad node spec: input: "resnet_v1_101_3/rois/stack_1_Concat__1306:0" 

求解决:

你可能感兴趣的:(程序人生,python,深度学习)