MCPcopy Create free account
hub / github.com/Sirwenhao/Deep-Learning-Notes / create_regnet

Function create_regnet

CV/Pytorch_classification/RegNet/model.py:288–295  ·  view source on GitHub ↗
(model_name="RegNetX_200MF", num_classes=1000)

Source from the content-addressed store, hash-verified

286
287
288def create_regnet(model_name="RegNetX_200MF", num_classes=1000):
289 model_name = model_name.lower().replace("-", "_")
290 if model_name not in model_cfgs.keys():
291 print("support model name: \n{}".format("\n".join(model_cfgs.keys())))
292 raise KeyError("not support model name: {}".format(model_name))
293
294 model = RegNet(cfg=model_cfgs[model_name], num_classes=num_classes)
295 return model
296

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls 1

RegNetClass · 0.85

Tested by

no test coverage detected