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

Method __init__

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

Source from the content-addressed store, hash-verified

15
16class BaseModel(LightningModule):
17 def __init__(self, cfg: Config):
18 super().__init__()
19 self.model = create_model(cfg.model, class_num=cfg.dataset.class_num, weight_path=cfg.weight)
20
21 def forward(self, x):
22 return self.model(x)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

create_modelFunction · 0.90

Tested by

no test coverage detected