Skip to content
Snippets Groups Projects
Commit 3037bd41 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Changed yolo model's size to fit on hardware

parent ec746c8c
No related branches found
No related tags found
No related merge requests found
...@@ -61,11 +61,11 @@ class TinyYoloV2(lnn.module.Darknet): ...@@ -61,11 +61,11 @@ class TinyYoloV2(lnn.module.Darknet):
('8_max', nn.MaxPool2d(2, 2)), ('8_max', nn.MaxPool2d(2, 2)),
('9_convbatch', lnn.layer.Conv2dBatchReLU(128, 256, 3, 1, 1, momentum=momentum)), ('9_convbatch', lnn.layer.Conv2dBatchReLU(128, 256, 3, 1, 1, momentum=momentum)),
('10_max', nn.MaxPool2d(2, 2)), ('10_max', nn.MaxPool2d(2, 2)),
('11_convbatch', lnn.layer.Conv2dBatchReLU(256, 512, 3, 1, 1, momentum=momentum)), ('11_convbatch', lnn.layer.Conv2dBatchReLU(256, 384, 3, 1, 1, momentum=momentum)),
('12_max', lnn.layer.PaddedMaxPool2d(2, 1, (0, 1, 0, 1))), ('12_max', lnn.layer.PaddedMaxPool2d(2, 1, (0, 1, 0, 1))),
('13_convbatch', lnn.layer.Conv2dBatchReLU(512, 1024, 3, 1, 1, momentum=momentum)), ('13_convbatch', lnn.layer.Conv2dBatchReLU(384, 384, 3, 1, 1, momentum=momentum)),
('14_convbatch', lnn.layer.Conv2dBatchReLU(1024, 1024, 3, 1, 1, momentum=momentum)), ('14_convbatch', lnn.layer.Conv2dBatchReLU(384, 384, 3, 1, 1, momentum=momentum)),
('15_conv', nn.Conv2d(1024, len(self.anchors)*(5+self.num_classes), 1, 1, 0)), ('15_conv', nn.Conv2d(384, len(self.anchors)*(5+self.num_classes), 1, 1, 0)),
]) ])
) )
# fmt: on # fmt: on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment