opencv/modules/dnn
CNOCycle 98b8825031
Merge pull request #25613 from CNOCycle:tflite/ops
Support Global_Pool_2D ops in .tflite model #25613

### Pull Request Readiness Checklist

**Merge with extra**: https://github.com/opencv/opencv_extra/pull/1180

This PR adds support for `GlobalAveragePooling2D` and `GlobalMaxPool2D` on the TFlite backend. When the k`eep_dims` option is enabled, the output is a 2D tensor, necessitating the inclusion of an additional flatten layer. Additionally, the names of these layers have been updated to match the output tensor names generated by `generate.py` from the opencv_extra repository.

- [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
- [ ] 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
2024-05-31 19:31:21 +03:00
..
cmake Add Definition "_USE_MATH_DEFINES" for dnn plugin on Win32 build 2024-04-07 21:08:09 +09:00
include/opencv2 pre: OpenCV 4.10.0 (version++). 2024-05-21 11:37:05 +03:00
misc Merge pull request #24539 from LaurentBerger:blobrecttoimage 2023-12-19 20:00:04 +03:00
perf Fix proto and weights mess in dnn performance tests. 2024-02-07 09:16:09 +03:00
src Merge pull request #25613 from CNOCycle:tflite/ops 2024-05-31 19:31:21 +03:00
test Merge pull request #25613 from CNOCycle:tflite/ops 2024-05-31 19:31:21 +03:00
CMakeLists.txt Merge pull request #25230 from hanliutong/rvv-conv 2024-03-31 16:47:06 +03:00