Commit Graph

11 Commits (eb3bd34c319dd2855301447e857a02de285a2ed9)

Author SHA1 Message Date
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
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
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
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