Add best.pt val and COCO pycocotools val (#98)

Co-authored-by: ayush chaurasia <ayush.chaurarsia@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Glenn Jocher 2022-12-27 04:56:24 +01:00 committed by GitHub
parent a1808eeda4
commit 6f0ba81427
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 159 additions and 115 deletions

View file

@ -86,7 +86,8 @@ def select_device(device='', batch_size=0, newline=False):
s += 'CPU\n'
arg = 'cpu'
LOGGER.info(s if newline else s.rstrip())
if RANK == -1:
LOGGER.info(s if newline else s.rstrip())
return torch.device(arg)