mirror of https://github.com/open-mmlab/mmocr.git
[Enhancement] Remove unnecessary custom_import from train.py (#603)
parent
809661ea28
commit
1544e9bb29
|
@ -111,10 +111,6 @@ def main():
|
||||||
cfg.data.train.pipeline[0].update(
|
cfg.data.train.pipeline[0].update(
|
||||||
file_client_args=mc['mc_file_client_args'])
|
file_client_args=mc['mc_file_client_args'])
|
||||||
|
|
||||||
# import modules from string list.
|
|
||||||
if cfg.get('custom_imports', None):
|
|
||||||
from mmcv.utils import import_modules_from_strings
|
|
||||||
import_modules_from_strings(**cfg['custom_imports'])
|
|
||||||
# set cudnn_benchmark
|
# set cudnn_benchmark
|
||||||
if cfg.get('cudnn_benchmark', False):
|
if cfg.get('cudnn_benchmark', False):
|
||||||
torch.backends.cudnn.benchmark = True
|
torch.backends.cudnn.benchmark = True
|
||||||
|
|
Loading…
Reference in New Issue