Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0539678

Browse files
committedJul 15, 2021
remove unused args
1 parent cb360fe commit 0539678

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed
 

‎mmseg/apis/test.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def single_gpu_test(model,
3535
show=False,
3636
out_dir=None,
3737
efficient_test=False,
38-
opacity=0.5,
39-
tmpdir=None):
38+
opacity=0.5):
4039
"""Test with single GPU.
4140
4241
Args:
@@ -50,8 +49,6 @@ def single_gpu_test(model,
5049
opacity(float): Opacity of painted segmentation map.
5150
Default 0.5.
5251
Must be in (0, 1] range.
53-
tmpdir (str): Path of directory to save the temporary results for
54-
efficient test.
5552
Returns:
5653
list: The prediction results.
5754
"""

‎mmseg/core/evaluation/eval_hooks.py

-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,10 @@ def _do_evaluate(self, runner):
3030
if not self._should_evaluate(runner):
3131
return
3232

33-
tmpdir = osp.join(runner.work_dir, '.eval_hook')
34-
3533
from mmseg.apis import single_gpu_test
3634
results = single_gpu_test(
3735
runner.model,
3836
self.dataloader,
39-
tmpdir=tmpdir,
4037
show=False,
4138
efficient_test=self.efficient_test)
4239
runner.log_buffer.output['eval_iter_num'] = len(self.dataloader)

‎tools/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def main():
140140
if not distributed:
141141
model = MMDataParallel(model, device_ids=[0])
142142
outputs = single_gpu_test(model, data_loader, args.show, args.show_dir,
143-
efficient_test, args.opacity, args.tmpdir)
143+
efficient_test, args.opacity)
144144
else:
145145
model = MMDistributedDataParallel(
146146
model.cuda(),

0 commit comments

Comments
 (0)
Please sign in to comment.