1. 14 Apr, 2022 1 commit
    • Andrew Stahlman's avatar
      [Enhancement] Speed up Registry initialization (#1844) · cd9dcc19
      Andrew Stahlman authored
      * Speed up Registry initialization
      
      This PR addresses https://github.com/open-mmlab/mmcv/issues/1843.
      
      Instead of calling inspect.stack() to read the entire stack and its
      associated source files from disk, walk up the stack to get only the
      specific frame that we need (see [1] for additional information).
      
      This makes imports in downstream projects ~2.5x faster in my local dev
      environment. For mmaction2, for example:
      
      Before:
      
          $ python -m timeit -n1 -r1 "from mmaction.apis import init_recognizer, inference_recognizer"
          1 loop, best of 1: 1.94 sec per loop
      
      After:
      
          $ python -m timeit -n1 -r1 "from mmaction.apis import init_recognizer, inference_recognizer"
          1 loop, best of 1: 754 msec per loop
      
      [1] https://stackoverflow.com/a/42636264/895769
      
      * Add comment with PR tag
      
      Explain why we avoid `inspect.stack()` with link to PR
      cd9dcc19
  2. 13 Apr, 2022 1 commit
  3. 10 Apr, 2022 1 commit
  4. 09 Apr, 2022 1 commit
  5. 05 Apr, 2022 1 commit
    • Tan SU's avatar
      [Enhancement] Fix collect_env on Windows (#1789) · c33f2489
      Tan SU authored
      * [fix] fix collect_env() on Windows
      
      * fix(utils): add back 'Cuda compilation tools' to nvcc info
      
      * feat(utils): find default ccompiler
      
      * fix(utils, test): parse cl.exe version instead of path
      
      * fix: code style
      
      * fix(tools): use distutils
      
      * [fix] collect_env() returns GCC or MSVC
      
      * [fix] unitest for collect_env()
      
      * add comments
      
      * test: add GCC to expected_keys
      
      * fix: code style
      
      * Update mmcv/utils/env.py
      c33f2489
  6. 02 Apr, 2022 2 commits
  7. 01 Apr, 2022 1 commit
  8. 31 Mar, 2022 1 commit
  9. 28 Mar, 2022 1 commit
  10. 26 Mar, 2022 2 commits
  11. 24 Mar, 2022 2 commits
  12. 23 Mar, 2022 1 commit
  13. 22 Mar, 2022 3 commits
  14. 21 Mar, 2022 1 commit
  15. 18 Mar, 2022 1 commit
  16. 17 Mar, 2022 1 commit
  17. 15 Mar, 2022 6 commits
  18. 14 Mar, 2022 2 commits
  19. 13 Mar, 2022 1 commit
  20. 11 Mar, 2022 1 commit
  21. 09 Mar, 2022 1 commit
  22. 07 Mar, 2022 3 commits
  23. 06 Mar, 2022 1 commit
  24. 03 Mar, 2022 3 commits
  25. 02 Mar, 2022 1 commit