onnx2keras icon indicating copy to clipboard operation
onnx2keras copied to clipboard

Support Resize op

Open oeway opened this issue 4 years ago • 3 comments

ONNX has deprecated UpSample op since opset_version 10.

The replacement op for Upsample is Resize, would be great to support that.

oeway avatar Feb 05 '21 11:02 oeway

I confirm, with opset 11 I am experiencing the following error:

Traceback (most recent call last): File "./onnx_to_keras.py", line 7, in k_model = onnx_to_keras(onnx_model, ['input.1']) File "/home/user/anaconda3/lib/python3.8/site-packages/onnx2keras/converter.py", line 175, in onnx_to_keras AVAILABLE_CONVERTERS[node_type]( KeyError: 'Resize'

gnthibault avatar Feb 17 '21 11:02 gnthibault

I am also getting that error with opset 12.

RaphaelRoyerRivard avatar Apr 01 '21 21:04 RaphaelRoyerRivard

Hi, All! Yes, for sure, that a great idea but the main problem is that Keras doesn't have an appropriate layer of the same functionality (as far as I know). Keras doesn't allow to Upsample/Resize by float number scale factor. If you will find the same Keras functionality - let us know! Thank you!

Andredance avatar Apr 07 '21 10:04 Andredance