Version 1.x mmocr reports an error when outputting best_checkponts
Prerequisite
- [X] I have searched Issues and Discussions but cannot get the expected help.
- [X] The bug has not been fixed in the latest version (0.x) or latest version (1.x).
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmocr
Environment
1.x version
Reproduces the problem - code sample
default_runtime.py
default_hooks = dict( timer=dict(type='IterTimerHook'), logger=dict(type='LoggerHook', interval=50), param_scheduler=dict(type='ParamSchedulerHook'), checkpoint=dict(type='CheckpointHook',interval=1,by_epoch=True, save_best=["word_acc","word_acc_ignore_case"], rule="greater"), sampler_seed=dict(type='DistSamplerSeedHook'), sync_buffer=dict(type='SyncBuffersHook'), # show pictures, not table visualization=dict( type='VisualizationHook', interval=10, enable=False, show=False, draw_gt=False, draw_pred=False), )
Reproduces the problem - command or script
、
Reproduces the problem - error message
Traceback (most recent call last):
File "tools/train.py", line 114, in
Additional information
No response