Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion error for Resize layer when using flag "-nuo" #641

Closed
amitk-OE opened this issue May 26, 2024 · 2 comments
Closed

Conversion error for Resize layer when using flag "-nuo" #641

amitk-OE opened this issue May 26, 2024 · 2 comments

Comments

@amitk-OE
Copy link

Issue Type

Others

OS

Linux

onnx2tf version number

1.17.5

onnx version number

1.14.0

onnxruntime version number

1.15.1

onnxsim (onnx_simplifier) version number

0.4.33

tensorflow version number

2.14.0-rc1

Download URL for ONNX

toy_with_constant_and_resize.onnx.zip

Parameter Replacement JSON

{}

Description

Thank you very much for your contribution!

Continuing issue #627, I failed to convert the attached toy model that includes a resize layer.

When I try to run "onnx2tf -i toy_with_constant_and_resize.onnx -osd -nuo" I get the following error -
TypeError: Could not build a TypeSpec for KerasTensor(type_spec=TensorSpec(shape=(1, None, None, 64), dtype=tf.float32, name=None), name='tf.compat.v1.image.resize_nearest_neighbor/ResizeNearestNeighbor:0', description="created by layer 'tf.compat.v1.image.resize_nearest_neighbor'") of unsupported type <class 'keras.src.engine.keras_tensor.KerasTensor'>.

The reason I want to use the flag -nuo is your comment in https://github.com/PINTO0309/onnx2tf/pull/628/files, for preserving constant outputs.

@PINTO0309
Copy link
Owner

Please examine the hundreds of commit logs yourself. I am not inclined to give advice on work that is outside of the main flow.

Copy link

If there is no activity within the next two days, this issue will be closed automatically.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants