From 67d5e65c775a4e9c95967304c118eaa4908dd048 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 5 Jun 2020 20:22:39 -0700 Subject: [PATCH] profiling update --- models/yolo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/yolo.py b/models/yolo.py index f45456d..871312e 100644 --- a/models/yolo.py +++ b/models/yolo.py @@ -180,8 +180,8 @@ if __name__ == '__main__': model.train() # Profile - img = torch.rand(8 if torch.cuda.is_available() else 1, 3, 640, 640).to(device) - y = model(img, profile=True) + # img = torch.rand(8 if torch.cuda.is_available() else 1, 3, 640, 640).to(device) + # y = model(img, profile=True) # print([y[0].shape] + [x.shape for x in y[1]]) # ONNX export