[Improve] replace loop of progressbar in api/test. ()

pull/1067/head
Hakjin Lee 2022-09-30 15:41:07 +09:00 committed by GitHub
parent 4eaaf89618
commit 1b4e9cd22a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions
mmcls/apis

View File

@ -79,8 +79,7 @@ def single_gpu_test(model,
**show_kwargs)
batch_size = data['img'].size(0)
for _ in range(batch_size):
prog_bar.update()
prog_bar.update(batch_size)
return results