MCPcopy Create free account
hub / github.com/MultimediaTechLab/YOLO / __init__

Method __init__

yolo/tools/solver.py:26–36  ·  view source on GitHub ↗
(self, cfg: Config)

Source from the content-addressed store, hash-verified

24
25class ValidateModel(BaseModel):
26 def __init__(self, cfg: Config):
27 super().__init__(cfg)
28 self.cfg = cfg
29 if self.cfg.task.task == "validation":
30 self.validation_cfg = self.cfg.task
31 else:
32 self.validation_cfg = self.cfg.task.validation
33 self.metric = MeanAveragePrecision(iou_type="bbox", box_format="xyxy", backend="faster_coco_eval")
34 self.metric.warn_on_many_detections = False
35 self.val_loader = create_dataloader(self.validation_cfg.data, self.cfg.dataset, self.validation_cfg.task)
36 self.ema = self.model
37
38 def setup(self, stage):
39 self.vec2box = create_converter(

Callers

nothing calls this directly

Calls 2

create_dataloaderFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected