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
{{ message }}
Repository navigation
Darknet io: Need parsing of "Connected" and "Dropout" layers and setting of MaxPool padding parameters correctly. #16437
1 Loading model using cv2.dnn.readNetFromDarknet(alexnet.cfg, alexnet.weights) gives error cv2.error: OpenCV(4.2.0-dev) /home/ashish/opencv/modules/dnn/src/darknet/darknet_io.cpp:800: error: (-212:Parsing error) Unknown layer type: in function 'ReadDarknetFromCfgStream'.
Getting this error because Parsing for "Connected" layer and "dropout" is not added.
2 Padding for Maxpool is incorrect. Darknet maxpool parser takes padding parameter for manual padding. if not mentioned, then take kernel_size - 1 as padding. Size after parsing becomes new size = original size + padding which is different from opencv. Hence padding needs attention.
changed the title [-]Darknet io: Need to parsing of "Connected" and "Dropout" layers and set MaxPool padding parameters correctly. [/-][+]Darknet io: Need parsing of "Connected" and "Dropout" layers and setting of MaxPool padding parameters correctly. [/+]on Jan 27, 2020
error: (-212:Parsing error) Failed to parse NetParameter file: K:\ train\yolo\yolov3_testing.cfg in function 'cv::dnn::dnn4_v20210301::readNetFromDarknet'
Activity
dkurt commentedon Jan 26, 2020
Please provide references to mentioned models.
[-]Darknet io: Need to parsing of "Connected" and "Dropout" layers and set MaxPool padding parameters correctly. [/-][+]Darknet io: Need parsing of "Connected" and "Dropout" layers and setting of MaxPool padding parameters correctly. [/+]Murtazaabidi1 commentedon Jun 30, 2021
Consistently gets this error anyone can help???
error: (-212:Parsing error) Failed to parse NetParameter file: K:\ train\yolo\yolov3_testing.cfg in function 'cv::dnn::dnn4_v20210301::readNetFromDarknet'