This commit is contained in:
Glenn Jocher 2019-12-09 13:25:34 -08:00
parent 07c1fafba8
commit 3bfbab7afd
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ def create_modules(module_defs, img_size, arc):
kernel_size=size,
stride=stride,
padding=pad,
groups=int(mdef['groups']) if 'groups' in mdef else 1,
bias=not bn))
if bn:
modules.add_module('BatchNorm2d', nn.BatchNorm2d(filters, momentum=0.1))