Skip to content

Commit

Permalink
infer batch size using len(result) in test function (open-mmlab#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuziyi616 authored May 6, 2021
1 parent aa14be1 commit f253451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmseg/apis/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def multi_gpu_test(model,
results.append(result)

if rank == 0:
batch_size = data['img'][0].size(0)
batch_size = len(result)
for _ in range(batch_size * world_size):
prog_bar.update()

Expand Down

0 comments on commit f253451

Please sign in to comment.