From 92ed24954357aeb66048c38484158423f7053105 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 26 Mar 2022 16:53:42 +0100 Subject: [PATCH] `yolo.py --profile` default GPU batch size 16 --- models/yolo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/yolo.py b/models/yolo.py index 11e17d28fa47..fb01aaafedcf 100644 --- a/models/yolo.py +++ b/models/yolo.py @@ -314,7 +314,7 @@ def parse_model(d, ch): # model_dict, input_channels(3) # Profile if opt.profile: - img = torch.rand(8 if torch.cuda.is_available() else 1, 3, 640, 640).to(device) + img = torch.rand(16 if torch.cuda.is_available() else 1, 3, 640, 640).to(device) y = model(img, profile=True) # Test all models