mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 21:22:43 -06:00
8b5e51541d6ae89aa8a122558d86cec67301eeca
* dnn: add the ONNX DeformConv operator Adds a CPU DeformConv layer for the new engine (2D, opsets 19-22). Each kernel tap samples the input bilinearly at its offset position (corners outside the image count as zero, like the ONNX reference), the optional mask scales the samples, and each group is then one fastGemm. group, offset_group, strides, dilations, pads and the optional B and mask inputs are supported. Enables the 4 DeformConv conformance tests and adds two tests for groups, strides, dilations, asymmetric pads, batch 2, and a mask without a bias. * dnn: DeformConv review fixes - compute the 4 corner indices and weights once per (offset group, k, i, j) and reuse them for all channels of the offset group (branch-free inner loop) - read kernel_size/stride/dilation/pad with params.getVector<int>() - take the output size from convInferShape() * dnn: DeformConv: keep the im2col buffer in the engine scratch pool, use cvFloor, parallel bias
OpenCV: Open Source Computer Vision Library
Resources
- Homepage: https://opencv.org
- Courses: https://opencv.org/courses
- Docs: https://docs.opencv.org/5.x/
- Q&A forum: https://forum.opencv.org
- previous forum (read only): http://answers.opencv.org
- Issue tracking: https://github.com/opencv/opencv/issues
- Additional OpenCV functionality: https://github.com/opencv/opencv_contrib
- Donate to OpenCV: https://opencv.org/support/
Contributing
Please read the contribution guidelines before starting work on a pull request.
Summary of the guidelines:
- One pull request per issue;
- Choose the right base branch;
- Include tests and documentation;
- Clean up "oops" commits before submitting;
- Follow the coding style guide.
Additional Resources
- Submit your OpenCV-based project for inclusion in Community Friday on opencv.org
- Subscribe to the OpenCV YouTube Channel featuring OpenCV Live, an hour-long streaming show
- Follow OpenCV on LinkedIn for daily posts showing the state-of-the-art in computer vision & AI
- Apply to be an OpenCV Volunteer to help organize events and online campaigns as well as amplify them
- Follow OpenCV on Mastodon in the Fediverse
- Follow OpenCV on X
- OpenCV.ai: Computer Vision and AI development services from the OpenCV team.
Description
Languages
C++
87.7%
C
3.1%
Python
2.9%
CMake
2%
Java
1.5%
Other
2.6%