1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-25 21:33:04 +04:00
Files
opencv/modules/core/test
Yang Guanyuhan 2d15169ab5 Merge pull request #28692 from YangGuanyuhan:fix-lightglue-assertion-fail
dnn: fix dst_dp assertion in broadcast for size-1 dims causing crash in lightglue.onnx model #28692

The original assertion CV_Assert(dst_dp == 1) does not handle valid cases where the innermost dimension size is 1 like [10, 5, 1], resulting in dst_dp == 0.

This occurs during broadcasting in LightGlue ONNX model and leads to assertion failure.

Allow dst_dp == 0 for size-1 dimensions to handle this edge case correctly.

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
2026-03-23 11:27:37 +03:00
..
2025-06-10 10:16:50 +03:00
2026-02-20 22:05:35 +03:00
2018-02-12 07:09:43 -05:00
2024-11-11 14:53:09 +03:00
2026-02-20 22:05:35 +03:00
2025-06-10 10:16:50 +03:00
2026-03-19 11:29:57 +03:00
2026-02-20 22:05:35 +03:00
2026-02-20 22:05:35 +03:00
2024-08-28 15:06:19 +03:00
2026-03-19 11:29:57 +03:00
2024-01-23 17:06:52 +03:00
2018-02-03 19:39:47 +00:00
2025-11-18 08:51:08 +03:00