Add best.pt val and COCO pycocotools val (#98)
Co-authored-by: ayush chaurasia <ayush.chaurarsia@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
a1808eeda4
commit
6f0ba81427
12 changed files with 159 additions and 115 deletions
|
|
@ -17,10 +17,10 @@ from ..detect import DetectionTrainer
|
|||
# BaseTrainer python usage
|
||||
class SegmentationTrainer(DetectionTrainer):
|
||||
|
||||
def load_model(self, model_cfg=None, weights=None):
|
||||
model = SegmentationModel(model_cfg or weights["model"].yaml, ch=3, nc=self.data["nc"])
|
||||
def load_model(self, model_cfg=None, weights=None, verbose=True):
|
||||
model = SegmentationModel(model_cfg or weights["model"].yaml, ch=3, nc=self.data["nc"], verbose=verbose)
|
||||
if weights:
|
||||
model.load(weights)
|
||||
model.load(weights, verbose)
|
||||
return model
|
||||
|
||||
def get_validator(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue