mirror of
https://github.com/open-mmlab/mmcv.git
synced 2025-06-03 21:54:52 +08:00
Add segmentation keys for greater_keys. (#1060)
This commit is contained in:
parent
e728608ac9
commit
717d15719c
@ -55,7 +55,10 @@ class EvalHook(Hook):
|
|||||||
|
|
||||||
rule_map = {'greater': lambda x, y: x > y, 'less': lambda x, y: x < y}
|
rule_map = {'greater': lambda x, y: x > y, 'less': lambda x, y: x < y}
|
||||||
init_value_map = {'greater': -inf, 'less': inf}
|
init_value_map = {'greater': -inf, 'less': inf}
|
||||||
greater_keys = ['acc', 'top', 'AR@', 'auc', 'precision', 'mAP']
|
greater_keys = [
|
||||||
|
'acc', 'top', 'AR@', 'auc', 'precision', 'mAP', 'mDice', 'mIoU',
|
||||||
|
'mAcc', 'aAcc'
|
||||||
|
]
|
||||||
less_keys = ['loss']
|
less_keys = ['loss']
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user