Simplify argument names (#141)
This commit is contained in:
@ -20,8 +20,8 @@ class DetectionPredictor(BasePredictor):
|
||||
|
||||
def postprocess(self, preds, img, orig_img):
|
||||
preds = ops.non_max_suppression(preds,
|
||||
self.args.conf_thres,
|
||||
self.args.iou_thres,
|
||||
self.args.conf,
|
||||
self.args.iou,
|
||||
agnostic=self.args.agnostic_nms,
|
||||
max_det=self.args.max_det)
|
||||
|
||||
|
@ -58,8 +58,8 @@ class DetectionValidator(BaseValidator):
|
||||
|
||||
def postprocess(self, preds):
|
||||
preds = ops.non_max_suppression(preds,
|
||||
self.args.conf_thres,
|
||||
self.args.iou_thres,
|
||||
self.args.conf,
|
||||
self.args.iou,
|
||||
labels=self.lb,
|
||||
multi_label=True,
|
||||
agnostic=self.args.single_cls,
|
||||
|
@ -14,8 +14,8 @@ class SegmentationPredictor(DetectionPredictor):
|
||||
masks = []
|
||||
# TODO: filter by classes
|
||||
p = ops.non_max_suppression(preds[0],
|
||||
self.args.conf_thres,
|
||||
self.args.iou_thres,
|
||||
self.args.conf,
|
||||
self.args.iou,
|
||||
agnostic=self.args.agnostic_nms,
|
||||
max_det=self.args.max_det,
|
||||
nm=32)
|
||||
|
@ -60,8 +60,8 @@ class SegmentationValidator(DetectionValidator):
|
||||
|
||||
def postprocess(self, preds):
|
||||
p = ops.non_max_suppression(preds[0],
|
||||
self.args.conf_thres,
|
||||
self.args.iou_thres,
|
||||
self.args.conf,
|
||||
self.args.iou,
|
||||
labels=self.lb,
|
||||
multi_label=True,
|
||||
agnostic=self.args.single_cls,
|
||||
|
Reference in New Issue
Block a user