Commit Graph

242 Commits (2624090ff4ebead4c99d7d59745921d6059f9a61)
 

Author SHA1 Message Date
Haodong Duan 2624090ff4
Warmup byepoch (#209)
* add iminvert

* DC now supports dimension other than 3

* add lmdb

* revise for lmdb

* add warmup_byepoch option

* remove not needed files

* add attribute active_loader for runner, revise code

* remove not used attrs

* remove not used attrs

* add docstring, else

* to pass CI

* to pass CI

Co-authored-by: zhaoyue-zephyrus <thuzhaoyue@gmail.com>
2020-03-15 22:14:39 +08:00
Jerry Jiarui XU 6738cd3085
add base for config (#194)
* add base for config

* fixed format

* rm terminal width

* support multiple & recursive base

* add test case

* fix format

* add test construct

* minor fix

* add more test, rewrite merge from opt

* avoid depulicate keys

* delete imported config as module

* rename merge_from_dict
2020-03-15 20:29:17 +08:00
Rui Xu 7dac84d08c
support pathlib in imageio (#208)
* support pathlib in imageio

* support pathlib in imageio

* add Path type for the annotation.

Co-authored-by: xurui4 <xurui4@sensetime.com>
2020-03-14 23:16:44 +08:00
lizz c294d2713b
Support dot in config.py file (#207)
Signed-off-by: lizz <lizz@sensetime.com>
2020-03-12 23:20:50 +08:00
NightBaronStar 24a66f1d47
Update tensorboard.py (#205)
* Update tensorboard.py

* Update tensorboard.py
2020-03-11 17:01:52 +08:00
Jiangmiao Pang fd066152d0
Update PaviLoggerHook (#202)
* add is_scalar in PaviLoggerHook and add unittest

* add docstrings
2020-03-02 18:48:51 +08:00
Kai Chen 120c6a64da
remove support for opencv 2 (#201) 2020-03-01 15:53:10 +08:00
Kai Chen 3fa5851891
Update pre-commit hook config (#200)
* update pre-commit hook config

* update the contributing guide
2020-03-01 15:51:40 +08:00
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