1. 19 Jul, 2022 11 commits
    • Yining Li's avatar
      Refactor base transform (#1830) · e2ca0733
      Yining Li authored
      * rename cacheable_method to cache_randomness
      
      * refactor transform wrappers and update docs
      
      * fix all_nonexist_keys
      
      * fix lint
      
      * rename transform wrappers
      e2ca0733
    • Yuan Liu's avatar
      [Feature]: Reformat resize config (#1826) · 0a5b4125
      Yuan Liu authored
      
      
      * [Feature]: Add cache to random func in data transform
      
      * [Fix]: Fix lint
      
      * [Fix]: Fix cache decorate problem
      
      * [Refactor]: Initialize Resize with config
      
      * [Refactor]: Move other resize config into Resize config
      
      * [Fix]: Scale can not be None in RandomResize
      
      * [Fix]: Change semantic seg to gt seg map
      
      * [Fix]: Delete unnecessary assert
      
      * [Fix]: Fix docstring
      
      * [Fix]: Add double quot to Resize in config
      
      * [Fix]: Fix the return type
      
      * [Fix]: Improve docstring
      
      * [Fix]: Specify the order of width and height for ratio range
      
      * [Fix]: Specify resize order
      Co-authored-by: default avatarYour <you@example.com>
      0a5b4125
    • Yifei Yang's avatar
      [Fix] Fix MultiScaleFlipAug (#1801) · 2844a116
      Yifei Yang authored
      * Fix MultiScaleFlipAug
      
      * fix as comment
      2844a116
    • Yifei Yang's avatar
      [Fix] Set keypoints not in the cropped image invisible (#1804) · 169f098d
      Yifei Yang authored
      * set invisiblity
      
      * fix as comment
      169f098d
    • Yining Li's avatar
      [Fix] Add @cacheable_method in transform wrapper `RandomChoice` (#1807) · 6534efd6
      Yining Li authored
      * add @cacheable_methd in RandomChoice
      
      * RandomChoice add __iter__() and fix unittest
      6534efd6
    • Yifei Yang's avatar
      [Enhancement] Enhance CenterCrop (#1765) · 2f85d781
      Yifei Yang authored
      * enhance centercrop and adjust crop size to (w, h)
      
      * fix comments
      
      * update required keys and docstring
      2f85d781
    • Yifei Yang's avatar
      [Feature] Add Part3 of data transform (#1735) · 2619aa9c
      Yifei Yang authored
      * update data transform part3
      
      * update init
      
      * rename flip funcs
      
      * fix comments
      
      * update comments
      
      * fix lint
      
      * Update mmcv/transforms/processing.py
      
      * fix docs format
      
      * fix comments
      
      * add test pad_val and fix bugs in class Pad
      
      * merge updated pad
      
      * fix lint
      
      * Update tests/test_transforms/test_transforms_processing.py
      2619aa9c
    • liukuikun's avatar
      [Fix] Pad boader fix (#1757) · 5af6c12b
      liukuikun authored
      * [Fix] expand pad_val'dim to be same with image
      
      * fix comment
      5af6c12b
    • Yuan Liu's avatar
      [Feature]: Add Part2 of data transform (#1730) · 53070ebc
      Yuan Liu authored
      
      
      * [Refactor]: New commit of Part2 of data transform
      
      * [Fix]: Fix lint
      
      * [Fix]: Change flip reisze to prefix
      
      * [Refactor]: Delete redundant code in ToTensor
      
      * [Fix]:optional
      
      * [Fix]: Change the discription of RandomFlip
      
      * [Refactor]: Change flip_with_flip_direction to flip_on_direction
      Co-authored-by: default avatarYour <you@example.com>
      53070ebc
    • liukuikun's avatar
      [Feature] Add Part1 of data transform (#1736) · 9e4b2ff5
      liukuikun authored
      * [Feature] Add Part1 of data transform
      
      * api.rst transform->transforms
      
      * fix typo
      
      * fix typo
      
      * rename test_processing into test_transforms_processing for avoiding same name
      
      * fix mypy
      
      * fix comment
      
      * fix comment
      9e4b2ff5
    • Yining Li's avatar
      [Feature] Add base transform interface (#1538) · d00b0cec
      Yining Li authored
      
      
      * Support deepcopy for Config (#1658)
      
      * Support deepcopy for Config
      
      * Iterate the `__dict__` of Config directly.
      
      * Use __new__ to avoid unnecessary initialization.
      
      * Improve according to comments
      
      * [Feature] Add spconv ops from mmdet3d (#1581)
      
      * add ops (spconv) of mmdet3d
      
      * fix typo
      
      * refactor code
      
      * resolve comments in #1452
      
      * fix compile error
      
      * fix bugs
      
      * fix bug
      
      * transform from 'types.h' to 'extension.h'
      
      * fix bug
      
      * transform from 'types.h' to 'extension.h' in parrots
      
      * add extension.h in pybind.cpp
      
      * add unittest
      
      * Recover code
      
      * (1) Remove prettyprint.h
      (2) Switch `T` to `scalar_t`
      (3) Remove useless lines
      (4) Refine example in docstring of sparse_modules.py
      
      * (1) rename from `cu.h` to `cuh`
      (2) remove useless files
      (3) move cpu files to `pytorch/cpu`
      
      * reorganize files
      
      * Add docstring for sparse_functional.py
      
      * use dispatcher
      
      * remove template
      
      * use dispatch in cuda ops
      
      * resolve Segmentation fault
      
      * remove useless files
      
      * fix lint
      
      * fix lint
      
      * fix lint
      
      * fix unittest in test_build_layers.py
      
      * add tensorview into include_dirs when compiling
      
      * recover all deleted files
      
      * fix lint and comments
      
      * recover setup.py
      
      * replace tv::GPU as tv::TorchGPU & support device guard
      
      * fix lint
      Co-authored-by: default avatarhdc <hudingchang.vendor@sensetime.com>
      Co-authored-by: default avatargrimoire <yaoqian@sensetime.com>
      
      * Imporve the docstring of imfrombytes and fix a deprecation-warning (#1731)
      
      * [Refactor] Refactor the interface for RoIAlignRotated (#1662)
      
      * fix interface for RoIAlignRotated
      
      * Add a unit test for RoIAlignRotated
      
      * Make a unit test for RoIAlignRotated concise
      
      * fix interface for RoIAlignRotated
      
      * Refactor ext_module.nms_rotated
      
      * Lint cpp files
      
      * add transforms
      
      * add invoking time check for cacheable methods
      
      * fix lint
      
      * add unittest
      
      * fix bug in non-strict input mapping
      
      * fix ci
      
      * fix ci
      
      * fix compatibility with python<3.9
      
      * fix typing compatibility
      
      * fix import
      
      * fix typing
      
      * add alternative for nullcontext
      
      * fix import
      
      * fix import
      
      * add docstrings
      
      * add docstrings
      
      * fix callable check
      
      * resolve comments
      
      * fix lint
      
      * enrich unittest cases
      
      * fix lint
      
      * fix unittest
      Co-authored-by: default avatarMa Zerun <mzr1996@163.com>
      Co-authored-by: default avatarWenhao Wu <79644370+wHao-Wu@users.noreply.github.com>
      Co-authored-by: default avatarhdc <hudingchang.vendor@sensetime.com>
      Co-authored-by: default avatargrimoire <yaoqian@sensetime.com>
      Co-authored-by: default avatarJiazhen Wang <47851024+teamwong111@users.noreply.github.com>
      Co-authored-by: default avatarHakjin Lee <nijkah@gmail.com>
      d00b0cec
  2. 07 Jul, 2022 1 commit
    • Zaida Zhou's avatar
      [Feature] Add support for mps (#2092) · 6a03918f
      Zaida Zhou authored
      * [Feature] Add support for MPS
      
      * fix import error
      
      * update ut
      
      * fix error
      
      * trigger CI
      
      * use a unique basename for test file modules
      
      * avoid bc-breaking
      6a03918f
  3. 30 Jun, 2022 2 commits
  4. 29 Jun, 2022 1 commit
  5. 15 Jun, 2022 1 commit
  6. 10 Jun, 2022 1 commit
  7. 09 Jun, 2022 1 commit
  8. 08 Jun, 2022 3 commits
  9. 27 May, 2022 1 commit
  10. 25 May, 2022 4 commits
  11. 20 May, 2022 2 commits
  12. 18 May, 2022 1 commit
  13. 10 May, 2022 2 commits
  14. 09 May, 2022 1 commit
  15. 02 May, 2022 1 commit
  16. 29 Apr, 2022 1 commit
    • WilliamKyle's avatar
      [Feature] Add rotated_feature_align cpu & onnxruntime implementation (#1878) · b30755ee
      WilliamKyle authored
      * add rotated_feature_align cpu implementation
      
      * add rotated_feature_align onnxruntime implementation
      
      * Update code for advices from grimoire
      
      Remove useless comment from mmcv/ops/csrc/pytorch/cpu/rotated_feature_align.cpp
      
      Replace ambiguous function name atomicAdd in mmcv/ops/csrc/pytorch/cpu/rotated_feature_align.cpp
      
      Simplify unit test with parameter in tests/test_ops/test_rotated_feature_align.py
      
      Use fma in interpolate in mmcv/ops/csrc/onnxruntime/cpu/rotated_feature_align.cpp mmcv/ops/csrc/pytorch/cpu/rotated_feature_align.cpp
      
      * Inline the function to reduce the overhead of the function call
      
      Use fma in interpolate
      b30755ee
  17. 27 Apr, 2022 1 commit
  18. 26 Apr, 2022 1 commit
  19. 25 Apr, 2022 1 commit
  20. 24 Apr, 2022 1 commit
  21. 18 Apr, 2022 2 commits
    • 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
    • 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