gmalivenko / onnx2keras

Convert ONNX model graph to Keras model format.
MIT License
195 stars 116 forks source link

KeyError: 'Tile' #116

Open alairfan opened 3 years ago

alairfan commented 3 years ago

DEBUG:onnx2keras:... DEBUG:onnx2keras:Check if all inputs are available: DEBUG:onnx2keras:Check input 0 (name 346). DEBUG:onnx2keras:Check input 1 (name 347). DEBUG:onnx2keras:Check input 2 (name 348). DEBUG:onnx2keras:... found all, continue DEBUG:onnx2keras:concat:Concat numpy arrays. DEBUG:onnx2keras:Output TF Layer -> [ 1 384 1] DEBUG:onnx2keras:###### DEBUG:onnx2keras:... DEBUG:onnx2keras:Converting ONNX operation DEBUG:onnx2keras:type: Tile DEBUG:onnx2keras:node_name: 350 DEBUG:onnx2keras:node_params: {'change_ordering': False, 'name_policy': None} DEBUG:onnx2keras:... DEBUG:onnx2keras:Check if all inputs are available: DEBUG:onnx2keras:Check input 0 (name 343). DEBUG:onnx2keras:Check input 1 (name 349). DEBUG:onnx2keras:... found all, continue Traceback (most recent call last): File "C:\Users\FAN\Desktop\colab\covertonnx2keras.py", line 8, in < module> k_model = onnx_to_keras(onnx_model, ['input']) File "D:\SoftWares\Anaconda3\lib\site-packages\onnx2keras\converter.py", line 175, in onnx_to_keras AVAILABLE_CONVERTERS[node_type]( KeyError: 'Tile'

When I convert onnx model to keras, I meet this problem. What shoud I do to make onnx2keras support 'Tile' type.

Andredance commented 3 years ago

Hi, @alairfan ! Currently, we don't support 'Tile' operator. If you want, you could try to implement it by yourself and make a PR. I can't say for sure when and if it would be implemented. Thank you!