gmalivenko / onnx2keras

Convert ONNX model graph to Keras model format.
MIT License
193 stars 114 forks source link

ImportError: cannot import name 'onnx_to_keras' from partially initialized module 'onnx2keras' (most likely due to a circular import) #69

Open jaggernaut007 opened 4 years ago

jaggernaut007 commented 4 years ago

Traceback (most recent call last): File "onnx2keras.py", line 2, in from onnx2keras import onnx_to_keras File "/home/shreyas/pose/pretrained/onnx2keras.py", line 2, in from onnx2keras import onnx_to_keras ImportError: cannot import name 'onnx_to_keras' from partially initialized module 'onnx2keras'

Tensorflow 2.2.0 Ubuntu 20.4

gmalivenko commented 4 years ago

hello. You try to import a function not from the package, but from your local file. The easiest way to fix that - to rename onnx2keras.py.