浏览代码

`yolo.py --profile` default GPU batch size 16

modifyDataloader
Glenn Jocher GitHub 2 年前
父节点
当前提交
7830e91b9a
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      models/yolo.py

+ 1
- 1
models/yolo.py 查看文件

@@ -314,7 +314,7 @@ if __name__ == '__main__':

# 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

正在加载...
取消
保存