General trainer cleanup (#147)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com>
This commit is contained in:
parent
f8a13c49a0
commit
0e5a7ae623
8 changed files with 196 additions and 60 deletions
|
|
@ -19,6 +19,7 @@ class SegmentationValidator(DetectionValidator):
|
|||
|
||||
def __init__(self, dataloader=None, save_dir=None, pbar=None, logger=None, args=None):
|
||||
super().__init__(dataloader, save_dir, pbar, logger, args)
|
||||
self.args.task = "segment"
|
||||
self.metrics = SegmentMetrics(save_dir=self.save_dir, plot=self.args.plots)
|
||||
|
||||
def preprocess(self, batch):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue