-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNN/TF(EfficientNet): add Fill layer, ONNX: add Split layer default axis + const-propagation #19696
Comments
Any update on this? It's basically a show stopper at the moment and I can't find a workaround. |
Please re-check issue with latest OpenCV code from 3.4 or master branch (which includes #20394 fix) |
Thanks, will try this out in next few days. |
@teaglin Friendly reminder. |
@teaglin, the ONNX model you provided has 2 inputs, as opposed to TF version which has only one - is this intentional? |
Sorry haven't had a chance to try this out yet. Been swamped, working my way to it. @rogday that must be an issue with ONNX converter then. The model only has 1 input. A single, 3 - channel image. |
Can you provide your original keras model in .h5 format? |
Please re-check issue with latest OpenCV code from 3.4 or master branch |
System information (version)
Detailed description
Using efficient lite model trained in Keras, then exported through tf crashes upon load using DNN. I've tried several different avenues. tf1 / tf2/ onnx. None seem to work. I've included 2 attempts through tensor flow. Both have different crashes.
Attempt 1.
.1/modules/dnn/src/tensorflow/tf_importer.cpp:591: error: (-2:Unspecified error) Input [batch_normalization_1/cond/ones_like] for node [batch_normalization_1/cond/FusedBatchNorm] not found in function 'getConstBlob'
Empty model can be accessed here.
https://www.dropbox.com/s/jfpisyrqokqxagl/frozen_graph.pb?dl=0
Attempt 2.
/opencv/opencv-4.5.1/modules/dnn/src/dnn.cpp:614: error: (-2:Unspecified error) Can't create layer "model_2/global_max_pooling2d_1/Max" of type "Max" in function 'getLayerInstance'
Empty model can be accessed here.
https://www.dropbox.com/s/rxl1ng4h6gcn0y0/frozen_graph2.pb?dl=0
Attempt 3.
This was done using tf2Onnx. So converting directly from Keras to Onnx.
Empty model can be accessed here.
https://www.dropbox.com/s/03l9myisk15zfye/model.onnx?dl=0
The text was updated successfully, but these errors were encountered: