Skip to content

onnx 12: Inconsistent shape for ConcatLayer in function 'cv::dnn::ConcatLayerImpl::getMemoryShapes' #18695

@JulienMaille

Description

@JulienMaille

I'm working on a Unet model and the upsampling layers will trigger an exception when infering on an image with a different size than the training dataset: Inconsistent shape for ConcatLayer in function 'cv::dnn::ConcatLayerImpl::getMemoryShapes'
When exporting to onnx opset 9, inference work for any input size. The upsampling layer is defined as Upsample
image

When exporting to onnx opset >9, inference work on 256² only. The upsampling layer is defined as Resize
image

I can provide both onnx by email if needed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions