Skip to content

dnn(eltwise): fix handling of different number of channels - #16088

Merged
alalek merged 5 commits into
opencv:3.4from
alalek:dnn_eltwise_layer_different_src_channels
Dec 11, 2019
Merged

alalek merged 5 commits into
opencv:3.4from
alalek:dnn_eltwise_layer_different_src_channels

Conversation

@alalek

@alalek alalek commented Dec 6, 2019 •

Copy link
Copy Markdown
Member

relates #15739

The eltwise layer code in OCV backend assumes that the number of channels are same in all inputs.

Details: https://github.com/opencv/opencv/pull/16063/files#r353899705

force_builders=Custom,Custom Win,Custom Mac
build_image:Custom=ubuntu-openvino-2019r3.0:16.04
build_image:Custom Win=openvino-2019r3.0
build_image:Custom Mac=openvino-2019r3.0

test_modules:Custom=dnn,python2,python3,java
test_modules:Custom Win=dnn,python2,python3,java
test_modules:Custom Mac=dnn,python2,python3,java

buildworker:Custom=linux-1
# disabled due high memory usage: test_opencl:Custom=ON
test_opencl:Custom=OFF
test_bigdata:Custom=1
test_filter:Custom=*

Comment thread modules/dnn/src/darknet/darknet_io.cpp Resolved
@dkurt
dkurt marked this pull request as ready for review December 11, 2019 13:14

@dkurt dkurt left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thank you!

@dkurt dkurt self-assigned this Dec 11, 2019
@alalek
alalek merged commit 5ee7abb into opencv:3.4 Dec 11, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
…nt_src_channels

dnn(eltwise): fix handling of different number of channels

* dnn(test): reproducer for Eltwise layer issue from PR16063

* dnn(eltwise): rework support for inputs with different channels

* dnn(eltwise): get rid of finalize(), variableChannels

* dnn(eltwise): update input sorting by number of channels

- do not swap inputs if number of channels are same after truncation

* dnn(test): skip "shortcut" with batch size 2 on MYRIAD targets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants