(k)
| 716 | return k |
| 717 | |
| 718 | def fitness(k): # mutation fitness |
| 719 | iou = wh_iou(wh, torch.Tensor(k)) # iou |
| 720 | max_iou = iou.max(1)[0] |
| 721 | return (max_iou * (max_iou > thr).float()).mean() # product |
| 722 | |
| 723 | # Get label wh |
| 724 | wh = [] |
no test coverage detected