Include each class metrics in logs (#445)
* Include each class metrics in logs * format * fix the unitest * fix the custom int class_name * fix the custom int class_namepull/450/head
parent
1fc3e374e2
commit
f7a5d53a4b
|
@ -374,6 +374,11 @@ class CustomDataset(Dataset):
|
|||
for i in range(1, len(summary_table_data[0])):
|
||||
eval_results[summary_table_data[0]
|
||||
[i]] = summary_table_data[1][i] / 100.0
|
||||
for idx, sub_metric in enumerate(class_table_data[0][1:], 1):
|
||||
for item in class_table_data[1:]:
|
||||
eval_results[str(sub_metric) + '.' +
|
||||
str(item[0])] = item[idx] / 100.0
|
||||
|
||||
if mmcv.is_list_of(results, str):
|
||||
for file_name in results:
|
||||
os.remove(file_name)
|
||||
|
|
Loading…
Reference in New Issue