updates
This commit is contained in:
parent
07c1fafba8
commit
3bfbab7afd
|
@ -30,6 +30,7 @@ def create_modules(module_defs, img_size, arc):
|
||||||
kernel_size=size,
|
kernel_size=size,
|
||||||
stride=stride,
|
stride=stride,
|
||||||
padding=pad,
|
padding=pad,
|
||||||
|
groups=int(mdef['groups']) if 'groups' in mdef else 1,
|
||||||
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))
|
||||||
|
|
Loading…
Reference in New Issue