Jiangmiao Pang
ac78bdc2cf
Add PaviLoggerHook ( #198 )
...
* fix wandb hook
* add pavi logger hook
* modify default value of init_kwargs to None
* add more features to PaviLoggerHook
* rm taskid (will cause bug)
* directly upload saved pth
* fix CI
* register PAVI Hooks
2020-03-01 00:39:16 +08:00
Kai Chen
0d5332a4c9
use registry to manage hooks ( #199 )
2020-02-29 20:46:40 +08:00
Kai Chen
c2c9fced2b
Add logging utils ( #196 )
...
* add logging utils
* install torch (cpu only) for CI
* fix unittests for runner
* remove python 2.7 from testing list
* add a corner case
2020-02-24 22:31:36 +08:00
Kai Chen
34197c5c89
Add registry and build_from_cfg ( #195 )
...
* add registry and build_from_cfg
* add some corner cases
* add some corner cases
* fix the unittest for python 3.5
* minor fix
2020-02-24 22:21:01 +08:00
Kai Chen
0863073cb7
flatten the mmcv/image dir and update to v0.3.2 ( #197 )
2020-02-24 22:13:50 +08:00
Joanna
0bf1e80c6e
add fast imresize ( #193 )
...
* size hint
Signed-off-by: lizz <lizz@sensetime.com>
* add fast resize
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* fix
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* add tests
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* fix
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* Update tests/test_image.py
* change format
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* add tests
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* add docstring
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
Co-authored-by: lizz <innerlee@users.noreply.github.com>
2020-02-24 21:50:33 +08:00
Joanna
9332a1dd29
add inplace normalization ( #192 )
...
* add inplace normalization
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* fix
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* add dtype check
* modify inplace norm
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* fix
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* fix
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* fix line
2020-02-19 22:49:15 +08:00
Joanna
5ee538d4ac
add inplace imflip ( #191 )
...
* add implace flip
* add tests
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* modify tests
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* add inplace tests
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* add comments
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* fix
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
2020-02-19 16:02:48 +08:00
Joanna
4eca2c5964
Image decoding optimization ( #187 )
...
* change image decoding method from cv2 to TurboJPEG
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* add tests
* travis
Signed-off-by: lizz <lizz@sensetime.com>
* fix
Signed-off-by: lizz <lizz@sensetime.com>
* more doc
Signed-off-by: lizz <lizz@sensetime.com>
* change per request
Signed-off-by: lizz <lizz@sensetime.com>
* more doc
Signed-off-by: lizz <lizz@sensetime.com>
* baby-sitting
Signed-off-by: lizz <lizz@sensetime.com>
Co-authored-by: lizz <innerlee@users.noreply.github.com>
2020-02-18 20:41:03 +08:00
lizz
a0506ec560
Use cv2 to normalize img ( #176 )
...
* Use cv2 to normalize img
* multipy faster than divide
* also do imdenormalize
* support more channels
* even faster
Signed-off-by: lizz <lizz@sensetime.com>
* add test
Signed-off-by: lizz <lizz@sensetime.com>
* even even faster
Signed-off-by: lizz <lizz@sensetime.com>
* fffaster
Signed-off-by: lizz <lizz@sensetime.com>
* okay
Signed-off-by: lizz <lizz@sensetime.com>
* guard against implace modification
Signed-off-by: lizz <lizz@sensetime.com>
* fix imdenormalize
Signed-off-by: lizz <lizz@sensetime.com>
* tidy
Signed-off-by: lizz <lizz@sensetime.com>
* clean
Signed-off-by: lizz <lizz@sensetime.com>
* Update test_image.py
* Update test_image.py
* Update test_image.py
* Update test_image.py
* Update test_image.py
* Update test_image.py
2020-02-15 23:59:54 +08:00
Kai Chen
9470ff7035
remove support for python 3.4 ( #189 )
2020-02-15 15:09:36 +08:00
Kai Chen
6fe192fcaa
update version to 0.3.0 ( #188 )
2020-02-15 14:04:27 +08:00
Kai Chen
a47ca7a9a2
Fix an import error caused by legacy codes ( #186 )
...
* fix an import error
* fix an import error
2020-02-14 00:57:37 +08:00
Kai Chen
f4272a8875
remove the outdated PaviLoggerHook and add requirements.txt ( #185 )
2020-02-12 22:46:12 +08:00
Cao Yuhang
a500a64621
Use official ddp to implement MMDDP ( #184 )
2020-02-12 22:20:04 +08:00
Cao Yuhang
89606a14fa
log meta ( #183 )
...
* log meta
* add type check
2020-02-12 21:43:38 +08:00
Kai Chen
e127ef28db
Fix the missing numpy module for readthedocs ( #182 )
...
* Fix the missing numpy module for readthedocs
* fix the linting
2020-02-12 17:12:38 +08:00
lizz
0874642fb0
Speed up bbox_clip ( #177 )
...
* Speed up bbox_clip
* Update geometry.py
2020-02-05 15:17:42 +08:00
Kai Chen
d6ce3a2e1b
add _load_checkpoint() to handle the loading only ( #178 )
2020-02-03 23:44:39 +08:00
lizz
712651aab6
Adaptive progress bar length ( #174 )
...
* Adaptive progress bar length
Signed-off-by: lizz <lizz@sensetime.com>
* it works
Signed-off-by: lizz <lizz@sensetime.com>
* format
* pass test
* :lipstick
* test
* Update test_progressbar.py
* 2.7
* sort import
Signed-off-by: lizz <lizz@sensetime.com>
* try this
Signed-off-by: lizz <lizz@sensetime.com>
2020-02-02 18:18:17 +08:00
lizz
90a0f353ee
Format to conform pre-commit ( #173 )
...
Signed-off-by: lizz <lizz@sensetime.com>
2020-02-01 10:14:55 +08:00
Kai Chen
43ca0e57a9
fix the shape assertion in impad ( #172 )
2020-01-11 17:53:35 +08:00
Kai Chen
10fa1eeaf4
Add copyright header ( #171 )
...
* add copyright header
* change # to // for cpp files
2020-01-10 13:34:42 +08:00
Wenwei Zhang
da7bb063d3
Load state dict ( #164 )
...
* use load_from_state_dict to load ckpt
* reformat
* reformat
* reformat import
* pass flake8
* isort skip
2020-01-04 14:55:01 +08:00
Kevin
b34eef6e0e
fix ZeroDivisionError in progressbar ( #162 ) ( #163 )
2020-01-02 15:23:42 +08:00
Ye Liu
0d00f1a61c
Fix int support in mmcv.slice_list ( #161 )
2019-12-21 19:34:08 +08:00
Kai Chen
ead4bc39bb
Add dist utils ( #157 )
...
* add dist utils
* rename due to a typo
* bump version to 0.2.15
* fix imports
2019-12-12 22:18:40 +08:00
Kai Chen
2330c4f468
Add pre-commit hooks ( #156 )
...
* add pre-commit hooks
* update yapf version
2019-12-12 21:40:42 +08:00
Kai Chen
fd3f862edb
add an argument to skip os.symlink ( #155 )
2019-12-12 20:41:43 +08:00
Zhipeng Han
50d2cbdd58
process the case that no weight in the module ( #153 )
...
Signed-off-by: han_hans <han_hans@apple.com>
2019-12-12 19:16:16 +08:00
Kai Chen
0eef3757e8
fix the code style of yapf 0.29 ( #150 )
...
* fix the code style of yapf 0.29
* fix flake8
2019-12-02 13:14:33 +08:00
Vladimir Iglovikov
56971278db
Added Weight and Biases logger. ( #143 )
...
* Added wandb logger
* bugfix
* fixes
* fix
* flake8 fixes
* yapf fixes
* Refactor hook, add test
* flake8 fixes
* yapf fixes
* fix in test
* mock package => travis
2019-12-02 12:32:50 +08:00
Rinat Shigapov
aea750051f
fix dependencies ( #146 )
...
* fix requirements
* don't reuse build dependencies between different envs
* minor fix
* change the order of opencv and opencv-headless
2019-11-21 23:34:26 +08:00
Korabelnikov Aleks
b480ee475f
prevent from hangning in cv2.imshow()/cv2.waitkey ( #145 )
...
* prevent from hangning in cv2.imshow()/cv2.waitkey
case:
Window has been closed after cv2.imshow; cv2.waitKey;
expected behavior:
- continue program
actual behavior:
- program hangs
This commit fixes it
* fix linter
2019-11-17 17:16:45 +08:00
Kai Chen
8829ff0dfd
Add rgb2gray and gray2rgb ( #139 )
...
* add rgb2gray and gray2rgb
* update version
* minor fix for the docstring
2019-10-06 22:46:06 +08:00
Dhananjai Sharma
d361ef21b0
Added solarize and posterize image transformations ( #132 )
...
* Added solarize and posterize image transformations
* Added solarize and posterize transformations. Modified __init__.py
* Updated mmcv/image/__init__.py
* Updated the docstrings for solarize and posterize
* add unit tests
* fix a test case
2019-10-06 22:12:17 +08:00
Kai Chen
688e6abe88
call dist.is_initialized() after checking the availability ( #128 )
2019-09-07 11:40:33 +08:00
Zhipeng Han
22ba143d6c
[feat]: find root of Version Control Systems ( #129 )
...
Signed-off-by: Zhipeng Han <hanzhipeng9@gmail.com>
2019-09-07 11:14:32 +08:00
Kai Chen
5b10dcd79f
Update version to v0.2.13 ( #117 )
2019-08-22 19:59:58 +08:00
lizz
25b422ab6f
Let progress goes to stderr ( #115 )
...
* let progress goes to stderr
Signed-off-by: lizz <lizz@sensetime.com>
* Add argument file=sys.stdout
Signed-off-by: lizz <lizz@sensetime.com>
* For the sake of the stupid pytest
Signed-off-by: lizz <lizz@sensetime.com>
* line width < 120 is anti-humane
Signed-off-by: lizz <lizz@sensetime.com>
* flake8
Signed-off-by: lizz <lizz@sensetime.com>
* Lets try
Signed-off-by: lizz <lizz@sensetime.com>
2019-08-21 19:31:58 +08:00
ZwwWayne
d5865e0cbd
Track iter progress ( #112 )
...
* track progress of iter&enum
* reformat
* reformat with yapf
* add unitest
* add doc, and deprecate track_enum_progress
* update docs & comments
2019-08-20 15:05:17 +08:00
Kai Chen
9de7927a69
Use torch.utils.tensorboard instead of tensorboardX ( #108 )
...
* use torch.utils.tensorboard instead of tensorboardX
* add backward compatibility
* add .idea to gitignore
2019-08-11 13:30:20 +08:00
Jerry Jiarui XU
27ce41907f
fixed crop of single channel image like semantic map ( #107 )
2019-08-11 12:53:23 +08:00
ZongYuan Zhan
3b46ddf0d3
Fix spelling mistake in Config.auto_argparser. ( #106 )
2019-08-09 00:01:27 +08:00
Kai Chen
7cb4d804e2
update to v0.2.12 ( #104 )
2019-08-06 20:57:50 +08:00
Yang Li
067d5086f0
Fix multiple err_msg logging in distribuited mode ( #103 )
2019-08-06 20:42:43 +08:00
CoinCheung
c6f2caea5d
resubmit parameter shape check ( #100 )
...
* resubmit parameter shape check
* check lint
* print a table of mismatched keys
2019-08-02 16:34:20 +08:00
Kai Chen
d1abbca1d9
Create CONTRIBUTING.md ( #102 )
2019-07-31 20:40:59 +08:00
Karlind
95b87687ca
install cython automatically as a dependency ( #101 )
...
* install cython automatically as a dependency
* install numpy automatically before building
* fix linting errors
2019-07-31 20:29:04 +08:00
Kai Chen
5f8fb7d463
update version to v0.2.11 ( #98 )
2019-07-31 02:33:58 +08:00