1. 20 May, 2022 1 commit
    • JarvisKevin's avatar
      [Enhancement] Lower the restrictions of _resize method in BaseMergeCell (#1959) · 60eadb06
      JarvisKevin authored
      * Fix the bug met in using nasfpn
      
      Fix the bug met in using nasfpn which is mentioned at https://github.com/open-mmlab/mmdetection/issues/5987
      
      .
      Avoid the strong restrictions of _resize function in BaseMergeCell:
      1. When Downsampling the feature map, the feature map's shape must be divisible by the target size. We pad zero around feature map before max_pool2d opt to make it always divisible. (line 102 ~ 107)
      2. Considering the different downsampling scale of H and W, shape[-2] and shape[-1] are involed in the definition of kernel_size. (line 110)
      
      * Update merge_cells.py
      
      check flake8 & isort
      
      * Update merge_cells.py
      
      * Update merge_cells.py
      
      yapf
      
      * Update mmcv/ops/merge_cells.py
      
      X_pad rename to padding_x
      Co-authored-by: default avatarMashiro <57566630+HAOCHENYE@users.noreply.github.com>
      
      * Update merge_cells.py
      
      format the code style after renameing the X_pad to padding_x
      
      * Update test_merge_cells.py
      
      Mainly test the downsampling resize in BaseMergeCell. The smaller target size is set to (14, 7), the classical feature map's size in the last few stages of the backbone, which will product different downsampling scales in different dims.
      
      * Update test_merge_cells.py
      
      add "# Copyright (c) OpenMMLab. All rights reserved."
      
      * Update merge_cells.py
      
      format the variable name
      
      * Update test_merge_cells.py
      
      Testing divisible and indivisible situations simultaneously
      
      * Update mmcv/ops/merge_cells.py
      
      fix the bug when h is indivisible and w is divisible, the pad_w will be padded unreasonable.
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      
      * Update mmcv/ops/merge_cells.py
      
      fix the bug when w is indivisible and h is divisible, the pad_h will be padded unreasonable.
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      
      * fix undefined error
      
      * Update merge_cells.py
      
      make pad_h, pad_w more readable
      
      * Update test_merge_cells.py
      
      use @pytest.mark.parametrize instead of 'for' methor
      
      * Update merge_cells.py
      
      * Update test_merge_cells.py
      
      isort
      
      * Update merge_cells.py
      
      isort
      Co-authored-by: default avatarMashiro <57566630+HAOCHENYE@users.noreply.github.com>
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      60eadb06
  2. 18 May, 2022 1 commit
  3. 17 May, 2022 1 commit
  4. 16 May, 2022 1 commit
    • Zaida Zhou's avatar
      [Docs] Replace markdownlint with mdformat for avoiding installing ruby (#1936) · b326a219
      Zaida Zhou authored
      * Use mdformat pre-commit hook
      
      * allows consecutive numbering
      
      * improve .mdformat.toml
      
      * test mdformat
      
      * format markdown
      
      * minor fix
      
      * fix codespecll
      
      * fix circleci
      
      * add linkify-it-py dependency for cicleci
      
      * add comments
      
      * replace flake8 url
      
      * add mdformat-myst dependency
      
      * remove mdformat-myst dependency
      
      * update contributing.md
      b326a219
  5. 14 May, 2022 1 commit
  6. 13 May, 2022 1 commit
  7. 12 May, 2022 1 commit
  8. 11 May, 2022 1 commit
  9. 10 May, 2022 4 commits
  10. 09 May, 2022 3 commits
  11. 08 May, 2022 2 commits
  12. 07 May, 2022 1 commit
  13. 05 May, 2022 2 commits
  14. 02 May, 2022 1 commit
  15. 30 Apr, 2022 1 commit
  16. 29 Apr, 2022 3 commits
  17. 28 Apr, 2022 1 commit
  18. 27 Apr, 2022 2 commits
  19. 26 Apr, 2022 1 commit
  20. 25 Apr, 2022 2 commits
  21. 24 Apr, 2022 1 commit
  22. 21 Apr, 2022 1 commit
  23. 18 Apr, 2022 5 commits
    • Zaida Zhou's avatar
      bump version to v1.5.0 (#1883) · 235c0253
      Zaida Zhou authored
      235c0253
    • Mashiro's avatar
      [Enhancement] Enhance get_torchvision_models (#1867) · a80df687
      Mashiro authored
      * enhance get_torchvision_models
      
      * simplify logic
      
      * Dump ckpt in torchvision lower than 0.13.0 to a json file
      
      * add json
      
      * refactor load urls logic
      
      * fix unit test
      
      * change url key to lower letters
      
      * check torchvision version rather than check torch version in unittest
      
      * Fix CI and refine test logic of torchvision version
      
      * add comment
      
      * support compare pre-release version
      
      * support loaad modeel like torchvision
      
      * refine comment.
      
      * fix unit test and comment
      
      * fxi unit test bug
      
      * support get model by lower weights
      a80df687
    • Tan SU's avatar
      [Fix] Get correct encoding in Windows for collect_env() (#1887) · a5cfcb93
      Tan SU authored
      * [Fix] get correct encoding in Windows for collect_env()
      
      * stdout.fileno()
      a5cfcb93
    • Vince Jankovics's avatar
      [Enhancement] Support None in DictAction (#1834) · b8044770
      Vince Jankovics authored
      * None parsing fixed for config
      
      * Formatting
      
      * Lower case none fix
      b8044770
    • mattcasey02's avatar
      [Fix] Fixed version comparison to include prerelease versions (#1877) · 6f6b17e6
      mattcasey02 authored
      * Fixed version comparison to include prerelease versions
      
      Currently all tagged versions of torch 1.11.0 have version 1.11.0a0. Previously the comparison to 1.11.0 failed and self._sync_params() was still used, causing an error. This fix should include all versions of 1.11.
      
      * Same update
      
      Didn't realize that 1.11.0 was mentioned multiple times in the file. This fixes the other instances.
      6f6b17e6
  24. 17 Apr, 2022 1 commit
    • Hu Di's avatar
      [Feature] Support MMCV on IPU (#1882) · 5221a388
      Hu Di authored
      * implement runner on IPU
      
      * adjust import
      
      * adjust import
      
      * add ignore for ipu on without ipu
      
      * remove compilation cache
      
      * remove ipu from mmcv/runner.__all__
      
      * adjust IS_IPU and IS_MLU
      
      * adjust by isort
      
      * add ipuHardwareIsAvailable
      
      * remove engine_cache
      
      * code review 9
      5221a388
  25. 16 Apr, 2022 1 commit