Skip to content

Commit 939bb56

Browse files
committed
* Fix YOLOv11 incorrectly checks hwc
1 parent 1f05300 commit 939bb56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/nn/include/maix_nn_yolo11.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ namespace maix::nn
384384
nn::LayerInfo &item = outputs[i];
385385
if(item.shape.size() == 4)
386386
{
387-
if(item.shape[1] == 4 && item.shape[2] == _anchor_num && item.shape[3] == 1) // hwc
387+
if(item.shape[1] == _anchor_num && item.shape[2] == (int)labels.size() && item.shape[3] == 1) // hwc
388388
{
389389
_out_chw = false;
390390
_out_idxes.dfl = i;

0 commit comments

Comments
 (0)