未验证 提交 4f2ddfe2 编写于 作者: B Bubbliiiing 提交者: GitHub

Update get_dr_txt.py

上级 0caf03cd
...@@ -54,7 +54,7 @@ class mAP_EfficientDet(EfficientDet): ...@@ -54,7 +54,7 @@ class mAP_EfficientDet(EfficientDet):
detection = torch.cat([regression,classification],axis=-1) detection = torch.cat([regression,classification],axis=-1)
batch_detections = non_max_suppression(detection, len(self.class_names), batch_detections = non_max_suppression(detection, len(self.class_names),
conf_thres=self.confidence, conf_thres=self.confidence,
nms_thres=0.3) nms_thres=self.iou)
try: try:
batch_detections = batch_detections[0].cpu().numpy() batch_detections = batch_detections[0].cpu().numpy()
except: except:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册