mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
infer batch size using len(result) in test function (#532)
This commit is contained in:
parent
4403923db1
commit
db44d16e02
@ -149,7 +149,7 @@ def multi_gpu_test(model,
|
|||||||
results.append(result)
|
results.append(result)
|
||||||
|
|
||||||
if rank == 0:
|
if rank == 0:
|
||||||
batch_size = data['img'][0].size(0)
|
batch_size = len(result)
|
||||||
for _ in range(batch_size * world_size):
|
for _ in range(batch_size * world_size):
|
||||||
prog_bar.update()
|
prog_bar.update()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user