未验证 提交 3b0eb1f6 编写于 作者: J JiaQi Xu 提交者: GitHub

Update ssd.py

上级 ccb1ac0b
......@@ -55,9 +55,9 @@ class SSD(object):
model = ssd.get_ssd("test",self.num_classes)
model.load_state_dict(torch.load(self.model_path))
self.net = model.eval()
self.net = torch.nn.DataParallel(self.net)
if self.cuda:
self.net = torch.nn.DataParallel(self.net)
cudnn.benchmark = True
self.net = self.net.cuda()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册