-
-
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
cant run converted keras model in dnn model, get error 'allocateLayers' or 'cv::dnn::dnn4_v20210301::`anonymous-namespace'::addConstNodes' #20153
Comments
Thanks @alalek |
I think you obtained
|
thanks i will try it, |
I was using 2.5.0 IIRC |
thanks, i will try it with tensorflow 2.5.0 because with 1.14.0 it not working |
it test with tensorflow 2.5.0
do you know how i can solve it? thanks a lot |
I tested my code for saving with python 3.7.10, tensorflow 1.15 and opencv 4.5.2. Everything works fine if I insert |
converted model according to you instructions: but when i try to test it with opench get error:
and the error is:
did you get this error? |
resolve this error... i am set not correct the input to the network.
but when i try to load my old network that has different in second layer i get error:
the different is that in old network i am use pow function instead multiplication in new network may be you know how i can solve it? |
Do you mean A^B element-wise? I do not believe we support this layer. ONNX importer supports A^c, where A, B - tensors and c is a constant scalar. If the original problem was resolved, feel free to close this issue and open a new one, concerning Pow. |
System information (version)
Detailed description
Hello, i am try to run my trained model with openCV but get errors:
first i am train my model in keras (down will be show summary).
After training i convert keras model to tensorflow model and get pb file
when i try to run the model get error :
if i try to load pb model with pbtxt configuration i am get error:
i am try first with openCV version 4.1.1, and after i am try with version 4.5.2 and try different OS (windows 10 and Ubuntu 16.04)
may be someone can help me to load my trained model with openCV
Steps to reproduce
Test_load_with_open_CV.zip
the summary of the model:
```.py
// python code example
Model: "Similarity_Model"
__________________________________________________________________________________________________
Layer (type) Output Shape Param # Connected to
The text was updated successfully, but these errors were encountered: