-
import onnx
from onnx2keras import onnx_to_keras
# Load ONNX model
onnx_model = onnx.load('resnet18.onnx')
# Call the converter (input - is the main model input name, can be different for your…
-
'''
# Returns a compiled model identical to the previous one
onnx_model = onnx.load(FILE_ONNX_PATH+"wine_price.onnx")
k_model_onnx = onnx_to_keras(onnx_model, ['input_3', 'input_2', 'input_1'], nam…
-
Using:
_import onnx
from onnx2keras import onnx_to_keras
import tensorflow as tf
import shutil
onnx_model = onnx.load('model.onnx')
k_model = onnx_to_keras(onnx_model=onnx_model, input_names=[…
-
Hello, I'm trying to convert my pytorch model to keras and I have ready onnx file for It. When I started to converting onnx to keras, I've got next error:
```
DEBUG:onnx2keras:Check if all inputs ar…
-
Trying to load and use onnx exported from pytorch - (1, 3, 28, 28).
onnx_model = onnx.load('data/export-torch.onnx')
k_model = onnx_to_keras(onnx_model, ['actual_input'])
DEBUG:onnx2keras:...
…
-
Trying to convert YOLOv5s tag2 model (https://github.com/ultralytics/yolov5/tree/v2.0) from ONNX to Keras and getting the following error.
onnx2keras.py:52: OptimizationMissingWarning: Transpose in…
-
**Describe the bug**
thanks for your code
I tried to convert official PyTorch centernet, the backbone is hourglass, got this error.
**Logs**
```
DEBUG:onnx2keras:Check input 1 (name 1194).
…
-
**Describe the bug**
DEBUG:onnx2keras:Converting ONNX operation
DEBUG:onnx2keras:type: Cast
DEBUG:onnx2keras:node_name: 353
DEBUG:onnx2keras:node_params: {'to': 1, 'change_ordering': True, 'name_p…
-
I am trying to convert an ONNX model to Keras, but when I call the conversion function I receive the following error message "TypeError: unhashable type: 'google._upb._message.RepeatedScalarContainer…
-
I get this error, can anybody help me?
```
Traceback (most recent call last):
File "", line 1, in
File "/Users/name/opt/anaconda3/envs/onnx2keras/lib/python3.6/site-packages/onnx2keras.py",…