Parcourir la source

Fix typo (#3729)

modifyDataloader
fcakyon GitHub il y a 3 ans
Parent
révision
0e2d0d54d7
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      export.py

+ 1
- 1
export.py Voir le fichier

@@ -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


Chargement…
Annuler
Enregistrer