updates
This commit is contained in:
parent
b079c1b10c
commit
b52a49cf12
|
@ -232,6 +232,7 @@ class Darknet(nn.Module):
|
||||||
|
|
||||||
def __init__(self, cfg_path, img_size=416):
|
def __init__(self, cfg_path, img_size=416):
|
||||||
super(Darknet, self).__init__()
|
super(Darknet, self).__init__()
|
||||||
|
|
||||||
self.module_defs = parse_model_config(cfg_path)
|
self.module_defs = parse_model_config(cfg_path)
|
||||||
self.module_defs[0]['height'] = img_size
|
self.module_defs[0]['height'] = img_size
|
||||||
self.hyperparams, self.module_list = create_modules(self.module_defs)
|
self.hyperparams, self.module_list = create_modules(self.module_defs)
|
||||||
|
|
Loading…
Reference in New Issue