未验证 提交 01f73e6f 编写于 作者: B Bubbliiiing 提交者: GitHub

Update efficientdet.py

上级 8d6560a7
......@@ -78,7 +78,6 @@ class EfficientDet(object):
state_dict = torch.load(self.model_path)
self.net.load_state_dict(state_dict)
if self.cuda:
os.environ["CUDA_VISIBLE_DEVICES"] = '0'
self.net = nn.DataParallel(self.net)
self.net = self.net.cuda()
print('{} model, anchors, and classes loaded.'.format(self.model_path))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册