Fix resume (#138)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Laughing
2023-01-03 21:06:22 +08:00
committed by GitHub
parent 82c849c163
commit 340376f7a6
9 changed files with 55 additions and 26 deletions

View File

@ -1,3 +1,5 @@
from copy import copy
import hydra
import torch
import torch.nn as nn
@ -64,7 +66,7 @@ class DetectionTrainer(BaseTrainer):
return v8.detect.DetectionValidator(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'):