瀏覽代碼

Fix typo (#3729)

modifyDataloader
fcakyon GitHub 3 年之前
父節點
當前提交
0e2d0d54d7
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      export.py

+ 1
- 1
export.py 查看文件

@@ -43,7 +43,7 @@ def run(weights='./yolov5s.pt', # weights path

# Load PyTorch model
device = select_device(device)
assert not (device.type == 'cpu' and opt.half), '--half only compatible with GPU export, i.e. use --device 0'
assert not (device.type == 'cpu' and half), '--half only compatible with GPU export, i.e. use --device 0'
model = attempt_load(weights, map_location=device) # load FP32 model
labels = model.names


Loading…
取消
儲存