Allow agnostic_nms option for validation (#14675)

This commit is contained in:
Laughing 2024-07-25 19:34:15 +08:00 committed by GitHub
parent 9df18ca9ef
commit 15266d37a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,7 @@ class DetectionValidator(BaseValidator):
self.args.iou,
labels=self.lb,
multi_label=True,
agnostic=self.args.single_cls,
agnostic=self.args.single_cls or self.args.agnostic_nms,
max_det=self.args.max_det,
)