Fix resume (#138)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
82c849c163
commit
340376f7a6
9 changed files with 55 additions and 26 deletions
|
|
@ -1,3 +1,5 @@
|
|||
from copy import copy
|
||||
|
||||
import hydra
|
||||
import torch
|
||||
import torch.nn as nn
|
||||
|
|
@ -27,7 +29,7 @@ class SegmentationTrainer(v8.detect.DetectionTrainer):
|
|||
return v8.segment.SegmentationValidator(self.test_loader,
|
||||
save_dir=self.save_dir,
|
||||
logger=self.console,
|
||||
args=self.args)
|
||||
args=copy(self.args))
|
||||
|
||||
def criterion(self, preds, batch):
|
||||
if not hasattr(self, 'compute_loss'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue