fcakyon GitHub пре 3 година
родитељ
комит
0e2d0d54d7
No known key found for this signature in database GPG Key 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…
Откажи
Сачувај