mirror of https://github.com/open-mmlab/mmocr.git
41 lines
1.0 KiB
Python
41 lines
1.0 KiB
Python
|
default_scope = 'mmocr'
|
||
|
|
||
|
default_hooks = dict(
|
||
|
timer=dict(type='IterTimerHook'),
|
||
|
logger=dict(type='LoggerHook', interval=100),
|
||
|
param_scheduler=dict(type='ParamSchedulerHook'),
|
||
|
checkpoint=dict(type='CheckpointHook', interval=1),
|
||
|
sampler_seed=dict(type='DistSamplerSeedHook'),
|
||
|
sync_buffer=dict(type='SyncBuffersHook'),
|
||
|
visualization=dict(
|
||
|
type='VisualizationHook',
|
||
|
interval=1,
|
||
|
enable=False,
|
||
|
show=False,
|
||
|
draw_gt=False,
|
||
|
draw_pred=False),
|
||
|
)
|
||
|
|
||
|
env_cfg = dict(
|
||
|
cudnn_benchmark=True,
|
||
|
mp_cfg=dict(mp_start_method='fork', opencv_num_threads=0),
|
||
|
dist_cfg=dict(backend='nccl'),
|
||
|
)
|
||
|
|
||
|
log_level = 'INFO'
|
||
|
load_from = None
|
||
|
resume = False
|
||
|
|
||
|
val_evaluator = dict(
|
||
|
type='MultiDatasetsEvaluator',
|
||
|
metrics=[
|
||
|
dict(
|
||
|
type='WordMetric',
|
||
|
mode=['exact', 'ignore_case', 'ignore_case_symbol']),
|
||
|
dict(type='CharMetric')
|
||
|
],
|
||
|
dataset_prefixes=None)
|
||
|
test_evaluator = val_evaluator
|
||
|
|
||
|
visualizer = dict(type='TextRecogLocalVisualizer', name='visualizer')
|