Commit Graph

30 Commits (7156604eba7350bb6c43f29d0fb2ee336f8d9dff)

Author SHA1 Message Date
Zaida Zhou a3cb068590
[Refactor] Use the new interface of fileio from mmengine (#2468)
* [Refactor] Use new interface of fileio

* update ut

* remove file_client_args

* add * before backend_args

* refine backend_args description
2022-12-28 00:09:05 +08:00
Mashiro a6c42ad324
[Feature] Add TTA transform (#2146)
* Add TestRandomResize

* rename ut class

* minor retine

* Replace for loop with itertools.product

* Support accept built transforms

* Fix unit test

* Refine docstring

* minor refine

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Minor refine

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-10-19 23:32:22 +08:00
Miao Zheng bf48ca035b
[Fix] Add `swap_labe_pairs` in `RandomFlip` (#2332)
* [Fix] Add `swap_labe_pairs` in `RandomFlip`

* [Fix] Add `swap_labe_pairs` in `RandomFlip`

* add reference info

* add swap_label_pairs in results

* revise according to comments

* revise according to comments

* revise according to comments

* docstring

* docstring
2022-10-17 23:21:20 +08:00
plyfager 1a57a76be5 complete repr functions 2022-07-19 19:18:16 +08:00
liukuikun f90567a091 [Fix] LoadImageFromFile 2022-07-19 19:18:16 +08:00
huanghaian 864942be2f fix resize error 2022-07-19 19:18:16 +08:00
Ma Zerun a1fb002269 [Refactor] Use `resize_type` instead of `resize_cfg` in `RandomResize` and `RandomChoiceResize`. 2022-07-19 19:18:16 +08:00
YuanLiuuuuuu a03774d6db [Refactor]: Grascale return uint8 type 2022-07-19 19:18:16 +08:00
YuanLiuuuuuu 5867a97a41 [Fix]: Fix random resize 2022-07-19 19:18:16 +08:00
liyining 59eaefebe0 [Feature] Support partial mapping by manually marking keys as ignored 2022-07-19 19:18:16 +08:00
gongtao.vendor 3b494a1304 Support broadcasting all keys for TransformBroadcaster 2022-07-19 19:18:16 +08:00
liukuikun 88f3cc3f35 replace height, width with img_shape 2022-07-19 19:18:16 +08:00
liukuikun ab0aa4ef86 load type (#1921) 2022-07-19 19:18:16 +08:00
Yining Li f59aec8ffb [Feature] Add decorator `avoid_cache_randomness` (#1864)
* add prohibit_cache_randomness

* rename as avoid_cache_randomness and ensure it is non-inheritable

* fix lint

* update docs
2022-07-19 19:18:16 +08:00
Yifei Yang ea84b67449 update scales and img_shape (#1871) 2022-07-19 19:18:16 +08:00
Yuan Liu 30b3844621 [Fix]: Update img_shape in resize related transform (#1907) 2022-07-19 19:18:16 +08:00
Yining Li ff0dfb74d7 add RandomApply (#1863) 2022-07-19 19:18:16 +08:00
Ma Zerun 428512f88a Rename `LoadAnnotation` to `LoadAnnotations` (#1850) 2022-07-19 19:18:16 +08:00
Yifei Yang b7525fae1e [Fix] Fix typos, init funcs, cacheable method of part3 of data transforms (#1784)
* fix typos and move args into cfg

* update docstring

* fix as comment

* fix lint

* update transforms as discussed before

* linting

* fix as comment

* fix lint

* fix lint and also update according to PackInput

* remove precommit change

* rename cacheable method

Co-authored-by: liukuikun <641417025@qq.com>
2022-07-19 19:18:16 +08:00
liukuikun e7592a70f2 [Fix] fix some typo in transforms (#1831)
* [Fix] fix some typo according to review

* fix comment
2022-07-19 19:18:16 +08:00
Yining Li e2ca0733c6 Refactor base transform (#1830)
* rename cacheable_method to cache_randomness

* refactor transform wrappers and update docs

* fix all_nonexist_keys

* fix lint

* rename transform wrappers
2022-07-19 19:18:16 +08:00
Yuan Liu 0a5b412509 [Feature]: Reformat resize config (#1826)
* [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: Your <you@example.com>
2022-07-19 19:18:16 +08:00
Yifei Yang 2844a11631 [Fix] Fix MultiScaleFlipAug (#1801)
* Fix MultiScaleFlipAug

* fix as comment
2022-07-19 19:18:16 +08:00
Yifei Yang 169f098d82 [Fix] Set keypoints not in the cropped image invisible (#1804)
* set invisiblity

* fix as comment
2022-07-19 19:18:16 +08:00
Yining Li 6534efd6ca [Fix] Add @cacheable_method in transform wrapper `RandomChoice` (#1807)
* add @cacheable_methd in RandomChoice

* RandomChoice add __iter__() and fix unittest
2022-07-19 19:18:16 +08:00
Yifei Yang 2f85d78149 [Enhancement] Enhance CenterCrop (#1765)
* enhance centercrop and adjust crop size to (w, h)

* fix comments

* update required keys and docstring
2022-07-19 19:18:16 +08:00
Yifei Yang 2619aa9c8e [Feature] Add Part3 of data transform (#1735)
* 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
2022-07-19 19:18:16 +08:00
liukuikun 5af6c12b81 [Fix] Pad boader fix (#1757)
* [Fix] expand pad_val'dim to be same with image

* fix comment
2022-07-19 19:18:16 +08:00
Yuan Liu 53070ebccf [Feature]: Add Part2 of data transform (#1730)
* [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: Your <you@example.com>
2022-07-19 19:18:16 +08:00
liukuikun 9e4b2ff58e [Feature] Add Part1 of data transform (#1736)
* [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
2022-07-19 19:18:15 +08:00