Conversation
|
Hi, this PR helps to enhance the flownet2 ( Simply running |
|
@zhaoyue-zephyrus Could you add test for the case you implemented? |
| parser.add_argument('--proto', '-p', default='FlowNet2_deploy.prototxt', help='Path to prototxt.') | ||
| parser.add_argument('--height', default=320, type=int, help='Input height') | ||
| parser.add_argument('--width', default=448, type=int, help='Input width') | ||
| parser.add_argument('--proto', '-p', default='FlowNet2_deploy_anysize.prototxt', help='Path to prototxt.') |
There was a problem hiding this comment.
Why do we need to change the default proto name?
There was a problem hiding this comment.
Sure we can keep the default proto name. This name (with _anysize) is the one I attached in the google drive.
There was a problem hiding this comment.
In flownet2-models.tar.gz from https://github.com/lmb-freiburg/flownet2/blob/master/models/download-models.sh default name is FlowNet2_deploy.prototxt.template
There was a problem hiding this comment.
Yes. However, the default FlowNet2_deploy.prototxt.template doesn't work with opencv-4.4.0 directly (maybe lacking certain layer's support). I modify the proto in https://drive.google.com/open?id=19bo6SWU2p8ZKvjXqMKiCPdK8mghwDy9b to have similar $-quoted variables link FlowNet2_deploy.prototxt.template.
|
The test samples have been added in this PR. |
Thank you! Please add test to https://github.com/opencv/opencv/blob/3.4/modules/dnn/test/test_layers.cpp |
|
Please rebase your PR to 3.4 branch |
When you talk about |
409563f to
be094a2
Compare
|
Can you squash all commits? Looks like this warning https://pullrequest.opencv.org/buildbot/builders/precommit_docs/builds/26251/steps/patch%20size%20opencv_extra/logs/stdio related to this PR. |
revise default proto to match the filename in documentations fix a bug beautify python codes fix bug beautify codes add test samples with larger/smaller size remove unless code using bytearray without creating tmp file remove useless codes
be094a2 to
e231be8
Compare
l-bat
left a comment
There was a problem hiding this comment.
Well done! Thank you so much 👍
merge with extra: opencv/opencv_extra#780
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.