@@ -36,9 +36,10 @@ def __init__(self, expansion, ni, nh, stride=1,
36
36
if div_groups is not None : # check if grops != 1 and div_groups
37
37
groups = int (nh / div_groups )
38
38
if expansion == 1 :
39
- layers = [("conv_0" , conv_layer (ni , nh , 3 , stride = stride , act_fn = act_fn , bn_1st = bn_1st ,
40
- groups = nh if dw else groups )),
41
- ("conv_1" , conv_layer (nh , nf , 3 , zero_bn = zero_bn , act = False , bn_1st = bn_1st ))
39
+ layers = [("conv_0" , conv_layer (ni , nh , 3 , stride = stride ,
40
+ act_fn = act_fn , bn_1st = bn_1st , groups = ni if dw else groups )),
41
+ ("conv_1" , conv_layer (nh , nf , 3 , zero_bn = zero_bn ,
42
+ act = False , bn_1st = bn_1st , groups = nh if dw else groups ))
42
43
]
43
44
else :
44
45
layers = [("conv_0" , conv_layer (ni , nh , 1 , act_fn = act_fn , bn_1st = bn_1st )),
@@ -132,7 +133,7 @@ def __init__(self, name='MC', c_in=3, c_out=1000,
132
133
133
134
@property
134
135
def block_sizes (self ):
135
- return [self .stem_sizes [- 1 ] // self .expansion ] + self ._block_sizes + [ 256 ] * ( len ( self . layers ) - 4 )
136
+ return [self .stem_sizes [- 1 ] // self .expansion ] + self ._block_sizes
136
137
137
138
@property
138
139
def stem (self ):
0 commit comments