Skip to content

Commit

Permalink
infer batch size using len(result) in test function (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuziyi616 authored May 6, 2021
1 parent 4403923 commit db44d16
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 db44d16

Please sign in to comment.