mmocr icon indicating copy to clipboard operation
mmocr copied to clipboard

训练mmocr识别模型时候 evaluation = dict(interval=1, metric='acc',save_best = 'auto') 无法像mmclassicifition 保存最优模型

Open ViviKing414 opened this issue 2 years ago • 3 comments

训练mmocr识别模型时候 evaluation = dict(interval=1, metric='acc',save_best = 'auto') 无法像mmclassicifition 保存最优模型

ViviKing414 avatar Sep 09 '22 05:09 ViviKing414

We recommend using English or English & Chinese for issues so that we could have broader discussion.

mm-assistant[bot] avatar Sep 09 '22 05:09 mm-assistant[bot]

Hi, you have to specify the metric name as 0_word_acc_ignore_case for example, for recognition task. Please also refer to issue #1130 .

For example

evaluation = dict(
interval=1, metric=["acc"], save_best="0_word_acc_ignore_case_symbol", rule="greater"
)

xinke-wang avatar Sep 09 '22 06:09 xinke-wang

Thanks for your answer, I'll try it now

ViviKing414 avatar Sep 09 '22 06:09 ViviKing414