We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a1c7e commit 98d4effCopy full SHA for 98d4eff
tools/analysis_tools/analyze_results.py
@@ -167,10 +167,14 @@ def evaluate_and_show(self,
167
elif isinstance(results[0], list):
168
good_samples, bad_samples = self.detection_evaluate(
169
dataset, results, topk=topk)
170
+ elif isinstance(results[0], tuple):
171
+ results_ = [result[0] for result in results]
172
+ good_samples, bad_samples = self.detection_evaluate(
173
+ dataset, results_, topk=topk)
174
else:
175
raise 'The format of result is not supported yet. ' \
176
'Current dict for panoptic segmentation and list ' \
- 'for object detection are supported.'
177
+ 'or tuple for object detection are supported.'
178
179
good_dir = osp.abspath(osp.join(show_dir, 'good'))
180
bad_dir = osp.abspath(osp.join(show_dir, 'bad'))
0 commit comments