Skip to content

Determine input shapes - #15203

Merged
alalek merged 7 commits into
opencv:masterfrom
l-bat:determine_inp_shape
Aug 9, 2019
Merged

alalek merged 7 commits into
opencv:masterfrom
l-bat:determine_inp_shape

Conversation

@l-bat

@l-bat l-bat commented Aug 1, 2019 •

Copy link
Copy Markdown
Contributor
force_builders=Custom,Custom Win,Custom Mac
build_image:Custom=ubuntu-openvino-2019r2.0:16.04
build_image:Custom Win=openvino-2019r2.0
build_image:Custom Mac=openvino-2019r2.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 Win=windows-1
test_opencl:Custom=OFF

buildworker:Custom=linux-1
test_opencl:Custom=ON
test_bigdata:Custom=1
test_filter:Custom=*

@l-bat
l-bat force-pushed the determine_inp_shape branch from 8c2c749 to 7cc3c68 Compare August 2, 2019 11:30
Comment thread modules/dnn/test/test_ie_models.cpp Resolved
Comment thread modules/dnn/test/test_ie_models.cpp Resolved
Comment thread modules/dnn/src/model.cpp Resolved
Comment thread modules/dnn/src/model.cpp Resolved
Comment thread modules/dnn/src/dnn.cpp Resolved
Comment thread modules/dnn/src/dnn.cpp Resolved
@l-bat
l-bat force-pushed the determine_inp_shape branch from 505d5a1 to e3b72ef Compare August 5, 2019 09:46
Comment thread modules/dnn/src/model.cpp Resolved
Comment thread modules/dnn/src/model.cpp Resolved
Comment thread modules/dnn/src/model.cpp Resolved
Comment thread modules/dnn/test/test_ie_models.cpp Resolved
@dkurt

dkurt commented Aug 8, 2019 •

Copy link
Copy Markdown
Member

@l-bat, May I ask you to resolve merge conflicts? Thanks!

@dkurt

dkurt commented Aug 9, 2019

Copy link
Copy Markdown
Member

@l-bat
l-bat force-pushed the determine_inp_shape branch from 04a9cff to d6962ba Compare August 9, 2019 10:42

@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.

👍 Thanks!

@dkurt dkurt self-assigned this Aug 9, 2019
@alalek
alalek merged commit f1ea9d8 into opencv:master Aug 9, 2019
Comment thread modules/dnn/src/dnn.cpp
// set empty input to determine input shapes
for (int inp_id = 0; inp_id < inputsNames.size(); ++inp_id)
{
cvNet.setInput(Mat(inp_shapes[inp_id], CV_32F), inputsNames[inp_id]);

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.

@l-bat @dkurt Looks like this patch is landed for "master" branch only. What is about backporting of this PR?

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.

I do not mind. Besides cv::dnn::Model other code should be compatible. Let me try to port it.

a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
* Determine input shapes

* Add test

* Remove getInputShapes

* Fix model

* Fix constructors

* Add Caffe test

* Fix predict
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
* Determine input shapes

* Add test

* Remove getInputShapes

* Fix model

* Fix constructors

* Add Caffe test

* Fix predict
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.

3 participants