Fix ClearML Mosaic callback to 'on_train_epoch_end' (#92)
This commit is contained in:
parent
0298821467
commit
249dfbdc05
5 changed files with 17 additions and 24 deletions
|
|
@ -47,6 +47,7 @@ class BaseValidator:
|
|||
model = model.half() if self.args.half else model.float()
|
||||
self.model = model
|
||||
self.loss = torch.zeros_like(trainer.loss_items, device=trainer.device)
|
||||
self.args.plots = trainer.epoch == trainer.epochs - 1 # always plot final epoch
|
||||
else:
|
||||
assert model is not None, "Either trainer or model is needed for validation"
|
||||
self.device = select_device(self.args.device, self.args.batch_size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue