[Fix] single gpu test bug

This commit is contained in:
Liang Yang 2022-03-08 10:23:37 +08:00 committed by GitHub
parent 217a3ae43d
commit eeb757108e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,14 +69,14 @@ def single_gpu_test(model: nn.Module,
if is_module_wrapper(model): if is_module_wrapper(model):
model.module.show_result( model.module.show_result(
img_show, img_show,
result[i], result[j],
show=show, show=show,
out_file=out_file, out_file=out_file,
score_thr=show_score_thr) score_thr=show_score_thr)
else: else:
model.show_result( model.show_result(
img_show, img_show,
result[i], result[j],
show=show, show=show,
out_file=out_file, out_file=out_file,
score_thr=show_score_thr) score_thr=show_score_thr)