@@ -36,9 +36,10 @@ def __init__(self, expansion, ni, nh, stride=1,
3636 if div_groups is not None : # check if grops != 1 and div_groups
3737 groups = int (nh / div_groups )
3838 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 ))
4243 ]
4344 else :
4445 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,
132133
133134 @property
134135 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
136137
137138 @property
138139 def stem (self ):
0 commit comments