Integration of v8 segmentation (#107)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Laughing 2022-12-28 23:01:38 +08:00 committed by GitHub
parent 384f0ef1c6
commit 8406b49b49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 422 additions and 224 deletions

View file

@ -66,7 +66,7 @@ class SegmentationValidator(DetectionValidator):
agnostic=self.args.single_cls,
max_det=self.args.max_det,
nm=self.nm)
return p, preds[1], preds[2]
return p, preds[1][-1]
def update_metrics(self, preds, batch):
# Metrics