Skip to content

Bilinear upsampling layer shift #18721

@aledenza

Description

@aledenza
System information (version)
  • OpenCV => 4.4
  • Operating System / Platform => Windows 10 x64
  • Compiler => VS2019 (Used stock opencv)
Detailed description

Mask shift apperas while tensorflow model inference, if model has Resize Bilinear Layer. There's no shift if ResizeBilinear layer replaced with ResizeNearest layer. Also tensorflow inference engine does not have this issue and works well with Bilinear and Nearest resize.

Here you can see results of inference:

Inference results

OpenCV DNN Bilinear
test_res_bilin

test_res_bilin_line

OpenCV DNN Nearest
test_res_nearest

Tensorflow Bilinear
tf_res_bilin

Tensorflow Nearest
tf_res_nearest

Steps to reproduce

reproduce.zip

Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    answers.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Assignees

Labels

bugcategory: dnnconfirmedThere is stable reproducer / investigation complete

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions