Closed ankandrew closed 3 years ago
Lambda was stored as a python blob in h5df, which is no way being converted to ncnn. I would suggest not using lambda in the backbone, and maybe implement the lambda part in C/C++ separately. (For your case, I think you can just use the Keras's softmax API)
Yes, chopping the model just after the GAP2D exports fine w/o problems. I just need to do softmax separately 7 times in C++ and there is no problem. Thanks for the response
I was wondering if tf.keras.layers.Lambda can be supported. My model looks like:
Imports & utility:
Model: