mirror of
https://github.com/open-mmlab/mmocr.git
synced 2025-06-03 21:54:47 +08:00
* [Feature] Add RepeatAugSampler * initial commit * spts inference done * merge repeat_aug (bug in multi-node?) * fix inference * train done * rm readme * Revert "merge repeat_aug (bug in multi-node?)" This reverts commit 393506a97cbe6d75ad1f28611ea10eba6b8fa4b3. * Revert "[Feature] Add RepeatAugSampler" This reverts commit 2089b02b4844157670033766f257b5d1bca452ce. * remove utils * readme & conversion script * update readme * fix * optimize * rename cfg & del compose * fix * fix * tmp commit * update training setting * update cfg * update readme * e2e metric * update cfg * fix * update readme * fix * update
43 lines
1.1 KiB
Python
43 lines
1.1 KiB
Python
default_scope = 'mmocr'
|
|
env_cfg = dict(
|
|
cudnn_benchmark=False,
|
|
mp_cfg=dict(mp_start_method='fork', opencv_num_threads=0),
|
|
dist_cfg=dict(backend='nccl'),
|
|
)
|
|
|
|
randomness = dict(seed=42)
|
|
|
|
default_hooks = dict(
|
|
timer=dict(type='IterTimerHook'),
|
|
logger=dict(type='LoggerHook', interval=100),
|
|
param_scheduler=dict(type='ParamSchedulerHook'),
|
|
checkpoint=dict(type='CheckpointHook', interval=1, max_keep_ckpts=2),
|
|
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),
|
|
)
|
|
|
|
# Logging
|
|
log_level = 'INFO'
|
|
log_processor = dict(type='LogProcessor', window_size=10, by_epoch=True)
|
|
|
|
load_from = None
|
|
resume = False
|
|
|
|
# Evaluation
|
|
val_evaluator = dict(type='E2EPointMetric')
|
|
test_evaluator = val_evaluator
|
|
|
|
# Visualization
|
|
vis_backends = [dict(type='LocalVisBackend')]
|
|
visualizer = dict(
|
|
type='TextSpottingLocalVisualizer',
|
|
name='visualizer',
|
|
vis_backends=vis_backends)
|