Sync train and test iou_thresh (#1465)

* Sync train and test iou_thresh

* Sync train and test iou_thresh

* weights names .lower()

* Notebook update
This commit is contained in:
Glenn Jocher authored and GitHub committed 2020-11-21 12:38:35 +01:00
1 parent d81bc47823
commit 201bafc7cf
4 files changed
+9 -10

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ from utils.torch_utils import select_device, time_synchronized
def test(data,
weights=None,
batch_size=16,
batch_size=32,
imgsz=640,
conf_thres=0.001,
iou_thres=0.6, # for NMS
@@ -279,7 +279,7 @@ if __name__ == '__main__':
parser.add_argument('--batch-size', type=int, default=32, help='size of each image batch')
parser.add_argument('--img-size', type=int, default=640, help='inference size (pixels)')
parser.add_argument('--conf-thres', type=float, default=0.001, help='object confidence threshold')
parser.add_argument('--iou-thres', type=float, default=0.65, help='IOU threshold for NMS')
parser.add_argument('--iou-thres', type=float, default=0.6, help='IOU threshold for NMS')
parser.add_argument('--task', default='val', help="'val', 'test', 'study'")
parser.add_argument('--device', default='', help='cuda device, i.e. 0 or 0,1,2,3 or cpu')
parser.add_argument('--single-cls', action='store_true', help='treat as single-class dataset')