Files
opencv-MIRROR/modules
sanjayk9 dc9d92c46d Merge pull request #30284 from sanjayk9:dnn-attention-fusion-missing-bias
dnn: fuse attention when a Q/K/V projection has no bias - #30284

The fused Attention layer needs the full QKV bias. Fill a missing projection bias with zeros in all three attention fusion paths, and leave the block unfused if a bias has the wrong length. The CLIP path dropped all three biases when one was missing, and the generic path read K/V bias blobs that may not exist. All three paths now emit a 1-D bias. Fixes the trOCR encoder.
some extra models and inputs added to opencv_extra: https://github.com/opencv/opencv_extra/pull/1433
### 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
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
2026-10-15 08:18:10 +03:00
..
2026-07-09 12:17:24 +03:00
2026-07-09 12:17:24 +03:00
2026-09-23 11:18:41 +02:00
2026-08-19 17:38:39 +02:00