Quellcode durchsuchen

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

modifyDataloader
Glenn Jocher GitHub vor 2 Jahren
Ursprung
Commit
7830e91b9a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      models/yolo.py

+ 1
- 1
models/yolo.py Datei anzeigen

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

Laden…
Abbrechen
Speichern