mirror of https://github.com/opencv/opencv.git
Previously, the yoloPostProcessing function assumed that the number of classes (nc) was fixed at 80. This caused incorrect behavior when a different number of classes was specified, leading to mismatched output shapes. This update modifies the code to use the provided `nc` value dynamically, ensuring that the output shapes are correctly calculated based on the specified number of classes. This prevents issues when `nc` is not equal to 80 and allows for greater flexibility in model configurations.pull/26618/head
parent
1d4110884b
commit
25fe85bbbb
2 changed files with 10 additions and 10 deletions
Loading…
Reference in new issue