-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
DNN/ONNX: Gather layer with 4 indices is not supported #19957
Copy link
Copy link
Closed
Labels
category: dnncategory: dnn (onnx)ONNX suport issues in DNN moduleONNX suport issues in DNN modulefeature
Description
Hi,
I use opencv 4.5.2 on my ubuntu 20.04 desktop, when I load the onnx model provided by onnx officially, for example yolov4(https://github.com/onnx/models/tree/master/vision/object_detection_segmentation/yolov4) :
[ERROR:0] global /home/jim/opencv/opencv4.5.2/opencv-4.5.2/modules/dnn/src/onnx/onnx_importer.cpp (2108) handleNode DNN/ONNX: ERROR during processing node with 1 inputs and 1 outputs: [Log]:(StatefulPartitionedCall/model/lambda/Log:0)
Traceback (most recent call last):
File "/home/jim/DL4CV_lesson/cv2 blobFromImage/read_onnx.py", line 16, in <module>
model = cv2.dnn.readNetFromONNX('yolov4.onnx')
cv2.error: OpenCV(4.5.2) /home/jim/opencv/opencv4.5.2/opencv-4.5.2/modules/dnn/src/onnx/onnx_importer.cpp:2129: error: (-2:Unspecified error) in function 'handleNode'
> Node [Log]:(StatefulPartitionedCall/model/lambda/Log:0) parse error: OpenCV(4.5.2) /home/jim/opencv/opencv4.5.2/opencv-4.5.2/modules/dnn/src/dnn.cpp:621: error: (-2:Unspecified error) Can't create layer "StatefulPartitionedCall/model/lambda/Log:0" of type "Log" in function 'getLayerInstance'
>
Thanks a lot !!!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category: dnncategory: dnn (onnx)ONNX suport issues in DNN moduleONNX suport issues in DNN modulefeature