提交 62e06ced 编写于 作者: Y Yang Nie

update

上级 4a54e5f7
...@@ -134,7 +134,7 @@ class BasicConv2d(nn.Layer): ...@@ -134,7 +134,7 @@ class BasicConv2d(nn.Layer):
return x return x
class PeleeNet(nn.Layer): class PeleeNetDY(nn.Layer):
r"""PeleeNet model class, based on r"""PeleeNet model class, based on
`"Densely Connected Convolutional Networks" <https://arxiv.org/pdf/1608.06993.pdf> and `"Densely Connected Convolutional Networks" <https://arxiv.org/pdf/1608.06993.pdf> and
"Pelee: A Real-Time Object Detection System on Mobile Devices" <https://arxiv.org/pdf/1804.06882.pdf>` "Pelee: A Real-Time Object Detection System on Mobile Devices" <https://arxiv.org/pdf/1804.06882.pdf>`
...@@ -153,7 +153,7 @@ class PeleeNet(nn.Layer): ...@@ -153,7 +153,7 @@ class PeleeNet(nn.Layer):
num_init_features=32, bottleneck_width=[1, 2, 4, 4], num_init_features=32, bottleneck_width=[1, 2, 4, 4],
drop_rate=0.05, class_num=1000): drop_rate=0.05, class_num=1000):
super(PeleeNet, self).__init__() super(PeleeNetDY, self).__init__()
self.features = nn.Sequential(*[ self.features = nn.Sequential(*[
('stemblock', _StemBlock(3, num_init_features)), ('stemblock', _StemBlock(3, num_init_features)),
...@@ -233,7 +233,7 @@ def _load_pretrained(pretrained, model, model_url, use_ssld): ...@@ -233,7 +233,7 @@ def _load_pretrained(pretrained, model, model_url, use_ssld):
) )
def peleenet(pretrained=False, use_ssld=False, **kwargs): def PeleeNet(pretrained=False, use_ssld=False, **kwargs):
model = PeleeNet(**kwargs) model = PeleeNetDY(**kwargs)
_load_pretrained(pretrained, model, MODEL_URLS["peleenet"], use_ssld) _load_pretrained(pretrained, model, MODEL_URLS["peleenet"], use_ssld)
return model return model
...@@ -65,7 +65,7 @@ DataLoader: ...@@ -65,7 +65,7 @@ DataLoader:
sampler: sampler:
name: DistributedBatchSampler name: DistributedBatchSampler
batch_size: 256 # for 2 cards batch_size: 128
drop_last: False drop_last: False
shuffle: True shuffle: True
loader: loader:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册