updates
This commit is contained in:
parent
b3ecfb10bc
commit
cc08e09219
|
@ -35,7 +35,7 @@ def create_modules(module_defs, img_size, arc):
|
||||||
bias=not bn))
|
bias=not bn))
|
||||||
if bn:
|
if bn:
|
||||||
modules.add_module('BatchNorm2d', nn.BatchNorm2d(filters, momentum=0.1))
|
modules.add_module('BatchNorm2d', nn.BatchNorm2d(filters, momentum=0.1))
|
||||||
if mdef['activation'] == 'leaky': # TODO: activation study https://github.com/ultralytics/yolov3/issues/441
|
if mdef['activation'] == 'leaky': # activation study https://github.com/ultralytics/yolov3/issues/441
|
||||||
modules.add_module('activation', nn.LeakyReLU(0.1, inplace=True))
|
modules.add_module('activation', nn.LeakyReLU(0.1, inplace=True))
|
||||||
# modules.add_module('activation', nn.PReLU(num_parameters=1, init=0.10))
|
# modules.add_module('activation', nn.PReLU(num_parameters=1, init=0.10))
|
||||||
elif mdef['activation'] == 'swish':
|
elif mdef['activation'] == 'swish':
|
||||||
|
|
Loading…
Reference in New Issue