Detection training zero-mAP fix (#192)

This commit is contained in:
Glenn Jocher
2023-01-10 12:18:39 +01:00
committed by GitHub
parent a8a70390ab
commit 0a7d86cd26
3 changed files with 3 additions and 2 deletions

View File

@ -60,7 +60,7 @@ class DetectionTrainer(BaseTrainer):
def get_model(self, cfg=None, weights=None, verbose=True):
model = DetectionModel(cfg, ch=3, nc=self.data["nc"], verbose=verbose)
if weights:
model.load(model)
model.load(weights)
return model