mmcv/tests
saurbhc 34f227efbd
[Feature] Add SegmindLoggerHook (#1650)
* add SegmindLoggerHook

* update linting for segmind.py

* ran pre-commit

* add test_segmind_hook

- add SegmindLoggerHook import in:
  mmcv/runner/__init__.py
  mmcv/runner/hooks/__init__.py
  mmcv/runner/hooks/logger/__init__.py

* update test_segmind_hook

- Add Docstring to SegmindLoggerHook
- Use get_loggable_tags(...)

* update test_hooks.py & segmind.py

- mmcv/runner/hooks/logger/segmind.py
  moved docs from __init__ to class ...
  update ImportError line-indentation
  remove unwanted method
- tests/test_runner/test_hooks.py
  update assert_called_with only on hook.segmind_mlflow_log

* Update tests/test_runner/test_hooks.py

disable yapf on test_hooks.py imports

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

* Update mmcv/runner/hooks/logger/segmind.py

Update SegmindLoggerHook docstring

Co-authored-by: Jiazhen Wang <47851024+teamwong111@users.noreply.github.com>

* update before_run method in segmind.py

removed un-used statements

* updated imports in SegmindLoggerHook

* update SegmindLoggerHook

- code cleanup

* update SegmindLoggerHook

- add interval parameter in __init__ method

* update SegmindLoggerHook

- more arguments passes to __init__ method
  - interval
  - ignore_last
  - reset_flag
  - by_epoch

* Update mmcv/runner/hooks/logger/segmind.py

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>

* Update mmcv/runner/hooks/logger/segmind.py

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Jiazhen Wang <47851024+teamwong111@users.noreply.github.com>
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
2022-03-03 10:01:46 +08:00
..
data Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_cnn Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_image Upgrade the version of isort (#1705) 2022-02-09 21:29:21 +08:00
test_ops Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_runner [Feature] Add SegmindLoggerHook (#1650) 2022-03-03 10:01:46 +08:00
test_utils Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_video [Features] Load optical flow data from bytes (#1362) 2021-09-23 21:25:59 +08:00
test_arraymisc.py [Docs] Add header for files (#1181) 2021-08-08 22:10:55 +08:00
test_fileclient.py Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_fileio.py [Feature] Loading objects from different backends and dumping objects to different backends (#1330) 2021-10-23 20:51:44 +08:00
test_load_model_zoo.py [Fix] Fix checkpoint local files detect (#1549) 2021-12-14 13:17:29 +08:00
test_parallel.py Add copyright pre-commit-hook (#1742) 2022-02-24 09:24:25 +08:00
test_visualization.py [Fix] Fix some warnings in unittest (#1522) 2021-12-22 10:57:10 +08:00