Harry
799421003d
Add module wrapper registry ( #352 )
...
* feat: modify parallel to module wrapper
* fix: unittest
* fix: add registry file
* feat: add module wrapper unittest
2020-06-17 20:12:54 +08:00
Jerry Jiarui XU
c6784f4acf
add backend arg ( #350 )
...
* add backend arg
* add test
* update doc, add test
* update test
* update doc
2020-06-17 19:42:31 +08:00
Wang Xinjiang
630b747cb1
added pillow backend in loading ( #333 )
...
* added pillow backend in loading
* reformat
* remove auto fill for RGBA
* change according to comments
* change according to comments
* reformat
2020-06-17 10:25:48 +08:00
Harry
f28a7c7ed7
Add CosineRestartLrUpdaterHook ( #319 )
...
* feat: add CosineRestartLrUpdaterHook
* style: rename period to periods
* fix: bug in period 0
* feat: rename eta_min to min_lr and add min_lr_ratio
* docs: fix docstring of restart lr updater
* refactor: use annealing_cos
* docs: add docstring to annealing_cos
* feat: cosine restart lr update hook
* refactor: modify code order for unittest
2020-06-15 23:01:26 +08:00
lizz
9f04477f93
Harmless changes ( #340 )
...
* harmless changes
Signed-off-by: lizz <lizz@sensetime.com>
* Update conv_module.py
* No bracket for simple class
Signed-off-by: lizz <lizz@sensetime.com>
2020-06-15 11:29:01 +08:00
lizz
b87e774f66
Remove more unused things ( #338 )
...
* Remove more unused things
Signed-off-by: lizz <lizz@sensetime.com>
* panic
Signed-off-by: lizz <lizz@sensetime.com>
2020-06-13 20:19:30 +08:00
Jintao Lin
5a98f7e421
enalbe memcached support in PetrelBackend ( #341 )
2020-06-13 18:32:48 +08:00
Harry
67a26da917
Add IterBasedRunner ( #314 )
...
* feat: add IterBasedRunner
* fix: unittest
* feat: more unittest
* fix: expose dataloader len
* minor updates of BaseRunner
* refactor: remove CosineRestartLrUpdaterHook
* style: add docstring
* refactor: update IterTextLoggerHook: fstring and exp_name
* fix: epoch_runner unittest
* refactor: remove IterBasedTextLogger
* fix: old IterTextLoggerHook issue
* refactor: remove __len__ of IterLoader
* feat: add IterBasedRunner to init
* feat: add __len__ to IterLoader
* fix some docstrings
* refactor: use is_parallel_module
* fix: import issue
* fix: runner unittest missing logger
* fix checkpoints
* feat: add by_epoch default value to IterBaseRunner regitering loggger_hook
* refactor: remove setting by_epoch in log_config
* minor refactoring
* docs: add docstring
* fix: remove unused doc
* update the log info for saving checkpoints
Co-authored-by: Kai Chen <chenkaidev@gmail.com>
2020-06-11 13:35:34 +08:00
Jerry Jiarui XU
61f9e91c9f
Add syntax check in .py config ( #330 )
...
* Add syntax check in .py config
* rename validate
2020-06-10 23:07:59 +08:00
Jerry Jiarui XU
2aa7712cb7
add more act w.o. inplace opt ( #329 )
2020-06-10 15:42:09 +08:00
Kai Chen
821b3ad622
Fix the BC issue of ddp ( #325 )
...
* fix the BC issue of ddp
* minor fix for the docstring
2020-06-08 22:34:19 +08:00
Jerry Jiarui XU
a3ae781789
add reserved key in config ( #315 )
2020-06-04 14:55:28 +08:00
Kai Chen
35ba152821
Add a BaseRunner and rename Runner to EpochBasedRunner ( #290 )
...
* add a BaseRunner and rename Runner to EpochBasedRunner
* fix the train/val step
* bug fix
* update unit tests
* fix unit tests
* raise an error if both batch_processor and train_step are set
* add a unit test
2020-06-02 22:23:21 +08:00
Harry
6f21d8b560
Add optimizer constructor from mmdetection ( #313 )
...
* feat: add optimizer constructor
* refactor: version
2020-06-02 19:57:24 +08:00
Harry
efecf7d1fe
fix building ConvModule with Tanh activation ( #309 )
...
* fix: tanh has not inplace
* feat: add ConvModule with Tanh
2020-06-01 21:26:51 +08:00
Kai Chen
213156cebb
Allow registering new backends with decorators ( #307 )
...
* allow registering new backends with decorators
* add a docstring
* minor update to the docstring
2020-05-31 21:56:03 +08:00
Wenwei Zhang
8ceb404ea6
Use mapping rather than dict for special keys ( #304 )
...
* Support path as a key in dict of config
* reformat test case
* update pre-commit version and fix format
* fix bug
* clean code
* reformat
* fix missing parts
2020-05-30 13:03:33 +08:00
Jerry Jiarui XU
d6411b7fff
BC of model zoo: add deprecate urls ( #301 )
...
* add deprecate urls
* add deprecate urls
* warning test
* rename to deprecated.json
2020-05-27 22:09:06 +08:00
Jerry Jiarui XU
37d8facfad
Support default/external json for open-mmlab models ( #230 )
...
* support default/external json for open-mmlab models
* add local
* add more test
* add docs
* add docs
* update docs
* refactor
* add json in MANIFEST
* fixed json typo
2020-05-27 17:12:43 +08:00
Jerry Jiarui XU
0946feabe3
add PetrelBackend ( #294 )
...
* add PetrelBackend
* update docs
* add path_maps for Ceph
* rename to path_mapping
* fixed import
2020-05-23 01:31:11 +08:00
Kai Chen
3bf3e8ef24
Revert "add PetrelBackend ( #291 )" ( #293 )
...
This reverts commit 7f80a2c6b9
.
2020-05-23 01:07:43 +08:00
Jerry Jiarui XU
7f80a2c6b9
add PetrelBackend ( #291 )
...
* add PetrelBackend
* update docs
* add path_maps for Ceph
* rename to path_mapping
2020-05-22 12:31:34 +08:00
Jintao Lin
25d07e3d54
Support conv layers' own `init_weights` method ( #278 )
...
* Support conv layers' own `init_weights` method
* Add related unittest about ConvModule init_weight
* make the comments more specific
2020-05-13 22:58:16 +08:00
Wenwei Zhang
c35c228cbb
Support to pass args to cnn bricks ( #277 )
2020-05-12 10:41:11 +08:00
Jerry Jiarui XU
d5936d02e3
Make Config.dump() output in original file ( #275 )
...
* add dump() from for different file type
* remove exception
2020-05-11 21:48:56 +08:00
Kai Chen
d4fac3a6dd
Use parrots wrapper ( #272 )
...
* use parrots wrapper for norms
* add unittests for is_norm()
* add a test case
2020-05-08 11:24:35 +08:00
Kai Chen
6aa5131559
move test_weight_init to tests/test_cnn ( #270 )
2020-05-05 21:03:12 +08:00
Wenwei Zhang
19e4a06cbc
Fix CosineAnealingLr register bug ( #265 )
...
* Fall back to CosineLr
* Fix consineanealing with unittest
* Cover momentum hook
* Add comments to explain
2020-05-04 00:38:55 +08:00
Xintao
65fbc75689
Add colorspace functions: rgb2ycbcr, bgr2ycbcr, ycbcr2rgb and ycbcr2bgr ( #259 )
...
* update
* add functions
* update tests
* resolve comments
* resolve comments
* resolve comments
* update docstr
2020-05-03 23:32:48 +08:00
Jerry Jiarui XU
1d54ee217e
remove deprecate register_module ( #262 )
2020-05-02 00:35:30 +08:00
Jerry Jiarui XU
a5b5193767
Fixed config import in config file ( #261 )
...
* fixed config import in code
* fixed isort
2020-05-01 21:55:07 +08:00
Kai Chen
45111e193d
Add building bricks of cnn ( #247 )
...
* add building bricks of cnn
* add unit tests
* use registry for building bricks
* minor updates
* add scale layer
* add test for scale
* add doc string
Co-authored-by: Jiarui XU <xvjiarui0826@gmail.com>
2020-05-01 00:32:25 +08:00
Jerry Jiarui XU
45a39dc6a8
make config merge a into b non-inplace ( #254 )
2020-04-29 15:09:27 +08:00
Kai Chen
f7de63fdd0
Support specifying names for registry.register_module() ( #251 )
...
* support specifying names for registry.register_module()
* minor fix
* add more unittests
2020-04-27 22:47:49 +08:00
Kai Chen
a338d43d78
Refactor unittests ( #241 )
...
* refactor unittests
* split test_video.py to two files
2020-04-26 22:54:27 +08:00
Cao Yuhang
b7e8d7d7fb
Use f-string ( #245 )
...
* use f-string
* delete python3.5 sup
* minor fix
* fix supported python version
* fix format
* fix yapf
* remove redundant space
* fix typo
2020-04-26 00:21:54 +08:00
Jerry Jiarui XU
1e8a212187
Add DictAction and docs for config ( #243 )
...
* fixed merge_from_dict, add DictAction
* add config docs
* fixed format type
* change to easy example
* update docs
* update docs
2020-04-25 20:56:08 +08:00
Kai Chen
e333d8222b
Add FileClient to access file from different backends ( #237 )
...
* add file client
* install missing requirements
* use .format() instead of f-string
2020-04-23 19:54:29 +08:00
Kai Chen
a0618d1051
Refactoring mmcv.images ( #239 )
...
* refactoring mmcv.images
* update docstring and minor fix
* some renames
2020-04-23 00:34:51 +08:00
Kai Chen
af02ac9f01
Use tmp dir as work_dir of runner ( #236 )
...
* use tmp dir as work_dir of runner
* only run codecov for python 3.7
* remove useless comments
2020-04-22 23:33:54 +08:00
Wenwei Zhang
ba059611d1
Momentum scheduler ( #167 )
...
* track progress of iter&enum
* restore
* add momentum scheduler
* fix small bug
* cyclic scheduler"
* fix bug
* fix second phase's bug
* reformat
* feature (cosine lr): use relative ratio for more flexible scheduler
* Fix (runner): fix bugs in runner
* Refactor (hook): refactor cosing/cyclic LR/momentum hook with unittest
* Clean unnecessary files and reformat
* Fix memory key error when GPU is not avaliable
* Resolve comments
* Do not print momentum in text log
* Change hook register order
* Refactor max_iter
* Fix max_iter bugs in runner
* Enforce target_ratio to be either tuple or float
2020-04-20 01:23:53 +08:00
David de la Iglesia Castro
d5f190d12d
Add MlflowLoggerHook ( #221 )
...
* Add MLflowLoggerHook
* Add MLflowLoggerHook to __all__
* Update name
* Fix tracking.MlflowClient setup
* Fix log_metric
* Fix mlflow_pytorch import
* Handle active_run
* Fix self.mlflow reference
* Simplify using high level API
* Fix set_experiment
* Add only_if_torch_available decorator and test_mlflow_hook
* Add missing import in hooks
* Fix torch available check
* Patch mlflow.pytorch in test
* Parametrize log_model
* Fix log_model parametrize
* Add docstring
* Move wand patch
* Fix flake8
* Add regression test for non numeric metric
* Only log numbers
* Rename experiment_name-> exp_name
* Remove pytest skip
2020-04-14 23:54:55 +08:00
Joanna
2ea0d51816
add contains to registry ( #223 )
...
* add contains to registry
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
* add contains to registry
* 'fix'
* 'minor'
* move
Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
Co-authored-by: lixuanyi <lixuanyi@sensetime.com>
2020-04-06 12:49:13 +08:00
Jerry Jiarui XU
e87a04e3c7
add pretty_text ( #220 )
...
* add pretty_text
* add test cases
* add argument indent
* change pretty_text to property
* fixed format end
2020-04-03 21:18:34 +08:00
Kai Chen
cd873f9c2f
Fix a potential bug of removing temp dir ( #218 )
...
* fix a potential bug of removing temp dir
* bump version to v0.4.2
2020-03-28 22:00:19 +08:00
Xintao
1bc80610ee
support recursive scanndir ( #215 )
...
* recursive scanndir
* support python3.5
* update and add tests
* resolve comments
* remove is_str
2020-03-19 22:50:37 +08:00
Jerry Jiarui XU
fa84b26422
add bias_init_with_prob ( #213 )
...
* add bia_init_with_prob
* add test_weight_init
2020-03-17 20:48:46 +08:00
Kai Chen
12e5913bb9
Remove supports for python 2.7 and bump version to 0.4.0 ( #211 )
...
* remove supports for python 2.7
* fix the unit test for python 3.5
* add python 3.8 in CI
* try ubuntu 18.04 as the environment
2020-03-16 15:15:35 +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