This commit is contained in:
Glenn Jocher 2020-02-28 10:06:35 -08:00
parent b3ecfb10bc
commit cc08e09219
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def create_modules(module_defs, img_size, arc):
bias=not bn))
if bn:
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.PReLU(num_parameters=1, init=0.10))
elif mdef['activation'] == 'swish':