commit
2c0b0f0d18
|
@ -273,7 +273,7 @@ class HRNet():
|
|||
input=conv,
|
||||
num_channels=num_filters,
|
||||
reduction_ratio=16,
|
||||
name=name + '_fc')
|
||||
name="fc" + name)
|
||||
return fluid.layers.elementwise_add(x=residual, y=conv, act='relu')
|
||||
|
||||
def bottleneck_block(self,
|
||||
|
@ -312,7 +312,7 @@ class HRNet():
|
|||
input=conv,
|
||||
num_channels=num_filters * 4,
|
||||
reduction_ratio=16,
|
||||
name=name + '_fc')
|
||||
name="fc" + name)
|
||||
return fluid.layers.elementwise_add(x=residual, y=conv, act='relu')
|
||||
|
||||
def squeeze_excitation(self,
|
||||
|
@ -325,7 +325,7 @@ class HRNet():
|
|||
stdv = 1.0 / math.sqrt(pool.shape[1] * 1.0)
|
||||
squeeze = fluid.layers.fc(
|
||||
input=pool,
|
||||
size=num_channels / reduction_ratio,
|
||||
size=int(num_channels / reduction_ratio),
|
||||
act='relu',
|
||||
param_attr=fluid.param_attr.ParamAttr(
|
||||
initializer=fluid.initializer.Uniform(-stdv, stdv),
|
||||
|
|
Loading…
Reference in New Issue