onnx2keras
onnx2keras copied to clipboard
Convert ONNX model graph to Keras model format.
After I converted a pytorch-onnx model into keras .h5, I noticed that input type: float32[?,w,h,c] Is it correct? what should i do?
when i use global_avgpool2d with change_ordering=True,some error happen. ValueError: operands could not be broadcast together with shapes (1,224,1,1) (1,3,1,1)
while executing k_model = onnx_to_keras(onnx_model, ['input']) , we are getting following error ---------------------------------------------------------------------- Traceback (most recent call last): File "import_convt2keras.py", line 8, in k_model = onnx_to_keras(onnx_model, ['input']) File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/onnx2keras/converter.py", line...
Can you help increase the Cast operator? or Is there any way to increase the custome layer? ``` Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\pydevd.py", line...
it seems, the tool doesn't support pytorch F.log_softmax(x, dim=1) operation
Since there are multiple breaking changes between different onnx versions i wonder which onnx version this project should/is targeting. Slice for example switched from providing the parameter via params to...
``` import onnx from onnx2keras import onnx_to_keras # Load ONNX model onnx_model = onnx.load('/home/pat-011/Desktop/deep_learning/POC1/output/tensorflow/pytorch_onnx_tf_onnx.onnx') # Call the converter (input - is the main model input name, can be different for...
It would be nice if the created model would be keras backend agnostic. This can be done by replacing all currently used tensorflow code with `keras.backend` code. I already ported...
I'm getting error while converting real-esrgan anime 6b onnx ``` Traceback (most recent call last): File "C:\Users\user\Downloads\onnx2keras-master\onnx2keras-master\call.py", line 8, in k_model = onnx_to_keras(onnx_model, ['input'], name_policy='renumerate') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\Downloads\onnx2keras-master\onnx2keras-master\onnx2keras\converter.py", line 176,...