You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System / Platform => MacOS 12.4 (21F79) Apple M1 Pro
Compiler => Visual Studio Code/ python /c++
Detailed description
python:
4.6.0
[ERROR:0@0.079] global /Users/runner/work/opencv-python/opencv-python/opencv/modules/dnn/src/onnx/onnx_importer.cpp (1021) handleNode DNN/ONNX: ERROR during processing node with 3 inputs and 1 outputs: [Clip]:(onnx_node!StatefulPartitionedCall/center_net_mobile_net_v2fpn_feature_extractor/model_1/model/Conv1_relu/Relu6) from domain='ai.onnx'
Traceback (most recent call last):
File "/Users/tony/Documents/Works/project/nts/cpp/python/pose.py", line 5, in <module>
net = cv2.dnn.readNetFromONNX("./model_pb.onnx") # 加载训练好的识别模型
cv2.error: OpenCV(4.6.0) /Users/runner/work/opencv-python/opencv-python/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1040: error: (-2:Unspecified error) in function 'handleNode'
> Node [Clip@ai.onnx]:(onnx_node!StatefulPartitionedCall/center_net_mobile_net_v2fpn_feature_extractor/model_1/model/Conv1_relu/Relu6) parse error: OpenCV(4.6.0) /Users/runner/work/opencv-python/opencv-python/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1934: error: (-2:Unspecified error) in function 'void cv::dnn::dnn4_v20220524::ONNXImporter::parseClip(cv::dnn::dnn4_v20220524::LayerParams &, const opencv_onnx::NodeProto &)'
> > (expected: 'node_proto.input_size() == 1'), where
> > 'node_proto.input_size()' is 3
> > must be equal to
> > '1' is 1
>
c++:
版本:4.5.5
[ERROR:0@2.046] global /tmp/opencv-20220225-83415-181ywau/opencv-4.5.5/modules/dnn/src/onnx/onnx_importer.cpp (909) handleNode DNN/ONNX: ERROR during processing node with 3 inputs and 1 outputs: [Clip]:(StatefulPartitionedCall/center_net_mobile_net_v2fpn_feature_extractor/model_1/model/Conv1_relu/Relu6:0) from domain='ai.onnx'
OpenCV(4.5.5) /tmp/opencv-20220225-83415-181ywau/opencv-4.5.5/modules/dnn/src/onnx/onnx_importer.cpp:928: error: (-2:Unspecified error) in function 'handleNode'
> Node [Clip@ai.onnx]:(StatefulPartitionedCall/center_net_mobile_net_v2fpn_feature_extractor/model_1/model/Conv1_relu/Relu6:0) parse error: OpenCV(4.5.5) /tmp/opencv-20220225-83415-181ywau/opencv-4.5.5/modules/dnn/src/onnx/onnx_importer.cpp:1613: error: (-2:Unspecified error) in function 'void cv::dnn::dnn4_v20211220::ONNXImporter::parseClip(cv::dnn::dnn4_v20211220::LayerParams &, const opencv_onnx::NodeProto &)'
> > (expected: 'node_proto.input_size() == 1'), where
> > 'node_proto.input_size()' is 3
> > must be equal to
> > '1' is 1
>
System information (version)
Detailed description
Steps to reproduce
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found any solution
The text was updated successfully, but these errors were encountered: