You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

collect_env.py 471 B

2 years ago
1234567891011121314151617
  1. # Copyright (c) OpenMMLab. All rights reserved.
  2. from mmcv.utils import collect_env as collect_base_env
  3. from mmcv.utils import get_git_hash
  4. import mmdet
  5. def collect_env():
  6. """Collect the information of the running environments."""
  7. env_info = collect_base_env()
  8. env_info['MMDetection'] = mmdet.__version__ + '+' + get_git_hash()[:7]
  9. return env_info
  10. if __name__ == '__main__':
  11. for name, val in collect_env().items():
  12. print(f'{name}: {val}')

No Description

Contributors (3)