mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-09-21 12:42:22 +08:00
feat: simplify batch ratio calculation by removing redundant condition for GPU memory
This commit is contained in:
@@ -882,8 +882,6 @@ def get_batch_ratio(device):
|
||||
batch_ratio = 8
|
||||
elif gpu_memory >= 12:
|
||||
batch_ratio = 4
|
||||
elif gpu_memory >= 8:
|
||||
batch_ratio = 2
|
||||
else:
|
||||
batch_ratio = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user