1. 10 May, 2022 1 commit
    • jmercat's avatar
      [Fix] Fix dump method of Config (#1837) · 1dbb5d36
      jmercat authored
      
      
      * config dump fix
      dump should not depend on how config was loaded only where it is dumped
      changed checks for type to the given filename instead of the source filename
      
      * defined test_fromdict and fixed dump function
      it might be more convoluted than it needs to be but the formatting depends on the extension of the argument or the extension of the self.filename
      
      * config dump defaults to returning pretty_text, test_fromdict renamed to test_dump_from_dict
      
      * some reformatting in docstrings
      
      * refine unittest
      
      * fix unit test as comment
      
      * Refine docstring
      
      * minor refinement
      
      * import mmcv
      
      * fix lint
      Co-authored-by: default avatarHAOCHENYE <21724054@zju.edu.cn>
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      1dbb5d36
  2. 09 May, 2022 1 commit
  3. 02 May, 2022 1 commit
  4. 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
  5. 27 Apr, 2022 1 commit
  6. 26 Apr, 2022 1 commit
  7. 25 Apr, 2022 1 commit
  8. 24 Apr, 2022 1 commit
  9. 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
  10. 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
  11. 16 Apr, 2022 2 commits
    • Zaida Zhou's avatar
      [Refactor] Move is_mlu_available to mmcv/utils/device_type.py (#1884) · 03b38a46
      Zaida Zhou authored
      * [Refactor] Move is_mlu_available to mmcv/utils/device_type.py
      
      * remove comma
      
      * fix isort
      03b38a46
    • Jiazhen Wang's avatar
      [Feature] Add several MLU ops (#1563) · 362a90f8
      Jiazhen Wang authored
      
      
      * [Feature] Add roiaware pool3d ops from mmdet3d (#1382)
      
      * add ops (roiaware pool3d) in mmdet3d
      
      * refactor code
      
      * fix typo
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      
      * [Feature] Add iou3d op from mmdet3d (#1356)
      
      * add ops (iou3d) in mmdet3d
      
      * add unit test
      
      * refactor code
      
      * refactor code
      
      * refactor code
      
      * refactor code
      
      * refactor code
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      
      * [Fix] Update test data for test_iou3d (#1427)
      
      * Update test data for test_iou3d
      
      * delete blank lines
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      
      * [Feature] Add group points ops from mmdet3d (#1415)
      
      * add op (group points) and its related ops (ball query and knn) in mmdet3d
      
      * refactor code
      
      * fix typo
      
      * refactor code
      
      * fix typo
      
      * refactor code
      
      * make input contiguous
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      
      * add mmdet3d op (#1425)
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      
      * [Feature] Loading objects from different backends and dumping objects to different backends (#1330)
      
      * [Feature] Choose storage backend by the prefix of filepath
      
      * refactor FileClient and add unittest
      
      * support loading from different backends
      
      * polish docstring
      
      * fix unittet
      
      * rename attribute str_like_obj to is_str_like_obj
      
      * add infer_client method
      
      * add check_exist method
      
      * rename var client to file_client
      
      * polish docstring
      
      * add join_paths method
      
      * remove join_paths and add _format_path
      
      * enhance unittest
      
      * refactor unittest
      
      * singleton pattern
      
      * fix test_clientio.py
      
      * deprecate CephBackend
      
      * enhance docstring
      
      * refactor unittest for petrel
      
      * refactor unittest for disk backend
      
      * update io.md
      
      * add concat_paths method
      
      * improve docstring
      
      * improve docstring
      
      * add isdir and copyfile for file backend
      
      * delete copyfile and add get_local_path
      
      * remove isdir method of petrel
      
      * fix typo
      
      * add comment and polish docstring
      
      * polish docstring
      
      * rename _path_mapping to _map_path
      
      * polish docstring and fix typo
      
      * refactor get_local_path
      
      * add list_dir_or_file for FileClient
      
      * add list_dir_or_file for PetrelBackend
      
      * fix windows ci
      
      * Add return docstring
      
      * polish docstring
      
      * fix typo
      
      * fix typo
      
      * deprecate the conversion from Path to str
      
      * add docs for loading checkpoints with FileClient
      
      * refactor map_path
      
      * add _ensure_methods to ensure methods have been implemented
      
      * fix list_dir_or_file
      
      * rename _ensure_method_implemented to has_method
      
      * Add CI for pytorch 1.10 (#1431)
      
      * [Feature] Upload checkpoints and logs to ceph (#1375)
      
      * [Feature] Choose storage backend by the prefix of filepath
      
      * refactor FileClient and add unittest
      
      * support loading from different backends
      
      * polish docstring
      
      * fix unittet
      
      * rename attribute str_like_obj to is_str_like_obj
      
      * [Docs] Upload checkpoint to petrel oss
      
      * add infer_client method
      
      * Support uploading checkpoint to petrel oss
      
      * add check_exist method
      
      * refactor CheckpointHook
      
      * support uploading logs to ceph
      
      * rename var client to file_client
      
      * polish docstring
      
      * enhance load_from_ceph
      
      * refactor load_from_ceph
      
      * refactor TextLoggerHook
      
      * change the meaning of out_dir argument
      
      * fix test_checkpoint_hook.py
      
      * add join_paths method
      
      * remove join_paths and add _format_path
      
      * enhance unittest
      
      * refactor unittest
      
      * add a unittest for EvalHook when file backend is petrel
      
      * singleton pattern
      
      * fix test_clientio.py
      
      * deprecate CephBackend
      
      * add warning in load_from_ceph
      
      * fix type of out_suffix
      
      * enhance docstring
      
      * refactor unittest for petrel
      
      * refactor unittest for disk backend
      
      * update io.md
      
      * add concat_paths method
      
      * fix CI
      
      * mock check_exist
      
      * improve docstring
      
      * improve docstring
      
      * improve docstring
      
      * improve docstring
      
      * add isdir and copyfile for file backend
      
      * delete copyfile and add get_local_path
      
      * remove isdir method of petrel
      
      * fix typo
      
      * rename check_exists to exists
      
      * refactor code and polish docstring
      
      * fix windows ci
      
      * add comment and polish docstring
      
      * polish docstring
      
      * polish docstring
      
      * rename _path_mapping to _map_path
      
      * polish docstring and fix typo
      
      * refactor get_local_path
      
      * add list_dir_or_file for FileClient
      
      * add list_dir_or_file for PetrelBackend
      
      * fix windows ci
      
      * Add return docstring
      
      * polish docstring
      
      * fix typo
      
      * fix typo
      
      * fix typo
      
      * fix error when mocking PetrelBackend
      
      * deprecate the conversion from Path to str
      
      * add docs for loading checkpoints with FileClient
      
      * rename keep_log to keep_local
      
      * refactor map_path
      
      * add _ensure_methods to ensure methods have been implemented
      
      * fix list_dir_or_file
      
      * rename _ensure_method_implemented to has_method
      
      * refactor
      
      * polish information
      
      * format information
      
      * bump version to v1.3.16 (#1430)
      
      * [Fix]: Update test data of test_tin_shift (#1426)
      
      * Update test data of test_tin_shift
      
      * Delete tmp.engine
      
      * add pytest raises asserterror test
      
      * raise valueerror, update test log
      
      * add more comment
      
      * Apply suggestions from code review
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      
      * fix the wrong function reference bug in BaseTransformerLayer when batch_first is True (#1418)
      
      * [Docs] Add mmcv itself in the docs list (#1441)
      
      * Add mmcv itself in the docs list
      
      * modify link of docs
      
      * [Improve] improve checkpoint loading log (#1446)
      
      * [Feature] Support SigmoidFocalLoss with Cambricon MLU backend (#1346)
      
      * [Feature] Support SigmoidFocalLoss with Cambricon MLU backend
      
      * refactor MMCV_WITH_MLU macro define
      
      * refactor NFU_ALIGN_SIZE, PAD_DOWN and split_pipeline_num
      
      * delete extra fool proofing in cpp
      
      * [Feature] Support SigmoidFocalLossBackward with Cambricon MLU backend
      
      * fix macro definition in SigmoidFocalLoss
      
      * refactor mlu files into clang-format
      
      * refactor sigmoid focal loss test
      
      * refactor Sigmoid Focal Loss file structure.
      
      * fix python lint error
      
      * fix import torch_mlu error type
      
      * fix lint
      
      * refactor clang format style to google
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      
      * [Feature] Support RoiAlign With Cambricon MLU Backend (#1429)
      
      * [Feature] Support NMS with cambricon MLU backend (#1467)
      
      * [Feature] Support BBoxOverlaps with cambricon MLU backend (#1507)
      
      * [Refactor] Format C++ code
      
      * [Refactor] include common_mlu_helper in pytorch_mlu_helper and refactor build condition
      
      * [Improve] Improve the performance of roialign, nms and focalloss with MLU backend (#1572)
      
      * [Improve] Improve the performance of roialign with MLU backend
      
      * replace CHECK_MLU with CHECK_MLU_INPUT
      
      * [Improve] Improve the perf of nms and focallosssigmoid with MLU backend
      
      * [Improve] Improve the performance of roialign with MLU backend (#1741)
      
      * [Feature] Support tin_shift with cambricon MLU backend (#1696)
      
      * [Feature] Support tin_shift with cambricon MLU backend
      
      * [fix] Add the assertion of batch_size in tin_shift.py
      
      * [fix] fix the param check of tin_shift in cambricon code
      
      * [fix] Fix lint failure.
      
      * [fix] Fix source file lint failure.
      
      * Update mmcv/ops/tin_shift.py
      
      [Refactor] Modify the code in mmcv/ops/tin_shift.py.
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Co-authored-by: default avatarbudefei <budefei@cambricon.com>
      Co-authored-by: default avatarbudefei <budefei@cambricom.com>
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      
      * resolve conflicts and fix lint
      
      * fix mmcv.utils.__init__
      
      * fix mmcv.utils.__init__
      
      * Fix lints and change FLAG
      
      * fix setup and refine
      
      * remove a redundant line
      
      * remove an unnecessary 'f'
      
      * fix compilation error
      Co-authored-by: default avatardingchang <hudingchang.vendor@sensetime.com>
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      Co-authored-by: default avatarq.yao <yaoqian@sensetime.com>
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Co-authored-by: default avatarpc <luopeichao@sensetime.com>
      Co-authored-by: default avatarWenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
      Co-authored-by: default avatarq.yao <streetyao@live.com>
      Co-authored-by: default avatarTong Gao <gaotongxiao@gmail.com>
      Co-authored-by: default avatarYuxin Liu <liuyuxin@cambricon.com>
      Co-authored-by: default avatarzihanchang11 <92860914+zihanchang11@users.noreply.github.com>
      Co-authored-by: default avatarshlrao <shenglong.rao@gmail.com>
      Co-authored-by: default avatarzhouchenyang <zcy19950525@gmail.com>
      Co-authored-by: default avatarMrxiaofei <36697723+Mrxiaofei@users.noreply.github.com>
      Co-authored-by: default avatarbudefei <budefei@cambricon.com>
      Co-authored-by: default avatarbudefei <budefei@cambricom.com>
      362a90f8
  12. 15 Apr, 2022 2 commits
    • Danila Rukhovich's avatar
      [Enhance] Differentiable rotated IoU (#1854) · aee596d5
      Danila Rukhovich authored
      * diff_iou_rotated is working
      
      * add test; fix lint
      
      * fix lint for test
      
      * disable cpu build
      
      * refactor files structure
      
      * fix comments
      
      * remove extra .repeat()
      
      * add comment
      
      * fix j-1 bug; update doc
      
      * fix clang lint
      
      * update docstrings
      
      * fix comments
      
      * fix comments
      aee596d5
    • Charlyo's avatar
      Make sure padding size is not negative (#1792) · 7982dd1a
      Charlyo authored
      * Make sure padding size is not negative
      
      If Resize maintains aspect ratio, could be the case that image shape is bigger than resize value.
      
      * Test pad shape smaller than image shape
      
      * Fix lint
      
      * Remove whitespaces
      7982dd1a
  13. 14 Apr, 2022 2 commits
  14. 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
  15. 31 Mar, 2022 1 commit
  16. 22 Mar, 2022 1 commit
  17. 21 Mar, 2022 1 commit
  18. 18 Mar, 2022 1 commit
  19. 15 Mar, 2022 3 commits
  20. 07 Mar, 2022 1 commit
  21. 03 Mar, 2022 1 commit
  22. 24 Feb, 2022 1 commit
  23. 20 Feb, 2022 1 commit
  24. 18 Feb, 2022 2 commits
    • Hakjin Lee's avatar
      [Refactor] Refactor the interface for RoIAlignRotated (#1662) · b83bdb0c
      Hakjin Lee authored
      * 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
      b83bdb0c
    • Wenhao Wu's avatar
      [Feature] Add spconv ops from mmdet3d (#1581) · c1de4c9b
      Wenhao Wu authored
      
      
      * 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>
      c1de4c9b
  25. 16 Feb, 2022 1 commit
    • Ma Zerun's avatar
      Support deepcopy for Config (#1658) · 33c83b5a
      Ma Zerun authored
      * Support deepcopy for Config
      
      * Iterate the `__dict__` of Config directly.
      
      * Use __new__ to avoid unnecessary initialization.
      
      * Improve according to comments
      33c83b5a
  26. 12 Feb, 2022 2 commits
  27. 09 Feb, 2022 2 commits
  28. 07 Feb, 2022 1 commit
  29. 28 Jan, 2022 1 commit
  30. 27 Jan, 2022 1 commit
  31. 24 Jan, 2022 1 commit