Skip to content

Fix dumpToFile#15057

Merged
alalek merged 3 commits intoopencv:3.4from
l-bat:fix_vizualizer
Jul 18, 2019
Merged

Fix dumpToFile#15057
alalek merged 3 commits intoopencv:3.4from
l-bat:fix_vizualizer

Conversation

@l-bat
Copy link
Copy Markdown
Contributor

@l-bat l-bat commented Jul 16, 2019

Related: #15016

force_builders=Custom,Custom Win,Custom Mac
build_image:Custom=ubuntu-openvino-2019r1:16.04
build_image:Custom Win=openvino-2019r1
build_image:Custom Mac=openvino-2019r1

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
test_opencl:Custom=ON
test_bigdata:Custom=1
test_filter:Custom=*

Copy link
Copy Markdown
Member

@dkurt dkurt left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

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

What is about testing of .dump() called twice?

TEST(dump, Regression)
{
Net net = readNet(findDataFile("dnn/squeezenet_v1.1.prototxt"),
findDataFile("dnn/squeezenet_v1.1.caffemodel"));
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.

.caffemodelfiles are not in opencv_extra. So this test data is considered optional.
See #15052

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.

dnn/squeezenet_v1.1.prototxt is in opencv_extra. false is not needed there.
(issue is catched by OPENCV_TEST_CHECK_OPTIONAL_DATA=1)

Mat input = blobFromImage(imread(findDataFile("dnn/googlenet_0.png")), 1.0f,
Size(227,227), Scalar(), false, true);
net.setInput(input);
net.dump();
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.

Test without check looks strange.

Lets check that result is not empty at least.

@alalek alalek merged commit 12fdaf8 into opencv:3.4 Jul 18, 2019
@alalek alalek mentioned this pull request Jul 18, 2019
dvd42 pushed a commit to dvd42/opencv that referenced this pull request Aug 6, 2019
* Fix dumpToFile

* Add test

* Fix test
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