__init__.py 1.4 KB

123456789101112131415161718192021222324252627
  1. # Copyright (c) OpenMMLab. All rights reserved.
  2. from .collect_env import collect_env
  3. from .compat_config import compat_cfg
  4. from .dist_utils import (all_reduce_dict, allreduce_grads, reduce_mean,
  5. sync_random_seed)
  6. from .logger import get_caller_name, log_img_scale
  7. from .memory import AvoidCUDAOOM, AvoidOOM
  8. from .misc import (find_latest_checkpoint, get_test_pipeline_cfg,
  9. update_data_root)
  10. from .replace_cfg_vals import replace_cfg_vals
  11. from .setup_env import (register_all_modules, setup_cache_size_limit_of_dynamo,
  12. setup_multi_processes)
  13. from .split_batch import split_batch
  14. from .typing_utils import (ConfigType, InstanceList, MultiConfig,
  15. OptConfigType, OptInstanceList, OptMultiConfig,
  16. OptPixelList, PixelList, RangeType)
  17. __all__ = [
  18. 'collect_env', 'find_latest_checkpoint', 'update_data_root',
  19. 'setup_multi_processes', 'get_caller_name', 'log_img_scale', 'compat_cfg',
  20. 'split_batch', 'register_all_modules', 'replace_cfg_vals', 'AvoidOOM',
  21. 'AvoidCUDAOOM', 'all_reduce_dict', 'allreduce_grads', 'reduce_mean',
  22. 'sync_random_seed', 'ConfigType', 'InstanceList', 'MultiConfig',
  23. 'OptConfigType', 'OptInstanceList', 'OptMultiConfig', 'OptPixelList',
  24. 'PixelList', 'RangeType', 'get_test_pipeline_cfg',
  25. 'setup_cache_size_limit_of_dynamo'
  26. ]