Repository navigation
DNN: Add support for ConvTranspose when parsing ONNX - #13131
Conversation
|
@Christopher22, Thanks for your contribution! It'll be great patch if you add some tests. #12596 + opencv/opencv_extra#523 Please also choose 3.4 branch as a base branch. Then we port it to master. |
This comment has been minimized.
This comment has been minimized.
|
Well, thats an convenient way for testing ONNX imports! I have not seen it before, but utilized one of my own models to check the correctness of the code. I will include the test (and thanks @alalek for the extensive How-To ;) ) |
|
Well, I feel like the rebase will not work that smoothly. Its probably not worth it fixing those Git errors for hours for such a small modification but just to start with a clean slate, after I create the test data in opencv_extra. |
461e2a1 to
426dc88
Compare
|
@Christopher22, Fixed that. Please update your local branch. |
|
Thanks @dkurt! A pleasure to commit here ;) Tests are now included and run successfully on my local machine. Let's wait for the one here... |
|
@alalek, it looks like Merge with extra doesn't work here as expected (is it because of 3.4 base branch?) |
|
Right, my bad. Need to add "squash" button on CI and avoid merging from GitHub. BTW, Can't we "require" such kind of data and fails on missings? (it doesn't come from download_models.py) Wrong again. This PR is not merged. Due different branch names need to add |
|
@alalek, Yeah, there is a flag. It's good idea because there are not a lot of dnn tests which can work without extra data. findDataFile(filename, false);std::string findDataFile(const std::string& relative_path, bool required)
{
return findData(relative_path, required, false);
} |
dkurt
left a comment
There was a problem hiding this comment.
Tested it locally. Looks good. Thank you!
…_onnx * Add support for ConvTranspose when parsing ONNX. * Add support for ConvTranspose when parsing ONNX. * Add test for Deconvolution
Merge with extra: opencv/opencv_extra#551
This tiny patch adds support for parsing ONNX files containing "ConvTranspose" layer. The existing Deconvolution implementation is capable of handling those, only the mapping was missing.