Skip to content

Commit

Permalink
yolo.py --profile default GPU batch size 16
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Mar 26, 2022
1 parent cc1c3c5 commit 92ed249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92ed249

Please sign in to comment.