MaybeShewill-CV / lanenet-lane-detection

Unofficial implemention of lanenet model for real time lane detection
Apache License 2.0
2.36k stars 886 forks source link

Loading and running model using OpenCV's dnn module #555

Closed daggarwa closed 2 years ago

daggarwa commented 2 years ago

Hi @MaybeShewill-CV Just wondering if you have tried uploading and running your model via OpenCV's dnn module or have any experience doing that for another tensorflow model?

MaybeShewill-CV commented 2 years ago

@daggarwa Sorry no experiments have been done:)

daggarwa commented 2 years ago

@MaybeShewill-CV Do you plan to? Or can tell if anyone has successfully loaded the lanelet model using the readNetFromTensorFlow API? Getting this error currently:

[ERROR:0] global /tmp/opencv/opencv-4.5.2/modules/dnn/src/dnn.cpp (3509) getLayerShapesRecursively OPENCV/DNN: []:(_input): getMemoryShapes() throws exception. inputs=1 outputs=0/0 blobs=0
[ERROR:0] global /tmp/opencv/opencv-4.5.2/modules/dnn/src/dnn.cpp (3515) getLayerShapesRecursively     input[0] = [ 1 3 416 416 ]
[ERROR:0] global /tmp/opencv/opencv-4.5.2/modules/dnn/src/dnn.cpp (3525) getLayerShapesRecursively Exception message: OpenCV(4.5.2) /tmp/opencv/opencv-4.5.2/modules/dnn/src/dnn.cpp:801: error: (-215:Assertion failed) inputs.size() == requiredOutputs in function 'getMemoryShapes'
MaybeShewill-CV commented 2 years ago

@daggarwa No plan to do that recently:)