Default AutoBatch 0.8 fraction (#9212)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2022-08-29 20:41:54 +02:00
1 parent 3c64d89104
commit 91a81d48fa
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ def check_train_batch_size(model, imgsz=640, amp=True):
return autobatch(deepcopy(model).train(), imgsz) # compute optimal batch size
def autobatch(model, imgsz=640, fraction=0.9, batch_size=16):
def autobatch(model, imgsz=640, fraction=0.8, batch_size=16):
# Automatically estimate best batch size to use `fraction` of available CUDA memory
# Usage:
# import torch