onnxconverter-common icon indicating copy to clipboard operation
onnxconverter-common copied to clipboard

support sizes for Resize op

Open liob opened this issue 4 years ago • 3 comments

The resize op optionally supports specifying the target shape using the optinal sizes argument. The current implementation does not seem to support this argument. Please add this functionality.

liob avatar Jun 26 '20 10:06 liob

Do we have a model that need support sizes argument? According to operators.md, only one of 'scales' and 'sizes' can be specified. Currently when we convert to onnx Resize, we always specify scales, so no need for sizes. What is the use case here? Thanks.

jiafatom avatar Jun 28 '20 19:06 jiafatom

@jiafatom our usecase is a unet which uses tf.image.resize in the decoder path, instead of a classical upsample layer. This allows us to match the tensor shapes for the concat operation without padding or slicing. If it helps, I can provide a minimal working example.

liob avatar Jul 01 '20 08:07 liob

@liob Yes, please provide a minimal working example for us to debug, thanks.

jiafatom avatar Jul 02 '20 03:07 jiafatom

@liob Hi, if this is still an issue, please go to onnxruntime to open an issue.

xiaowuhu avatar Oct 31 '22 09:10 xiaowuhu