mirror of
https://github.com/open-mmlab/mmocr.git
synced 2025-06-03 21:54:47 +08:00
Upgrade pre commit hooks (#1429)
This commit is contained in:
parent
0b53f50ead
commit
4fef7d1868
@ -1,7 +1,7 @@
|
||||
exclude: ^tests/data/
|
||||
repos:
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 4.0.1
|
||||
rev: 5.0.4
|
||||
hooks:
|
||||
- id: flake8
|
||||
- repo: https://github.com/PyCQA/isort
|
||||
@ -9,15 +9,15 @@ repos:
|
||||
hooks:
|
||||
- id: isort
|
||||
- repo: https://github.com/pre-commit/mirrors-yapf
|
||||
rev: v0.30.0
|
||||
rev: v0.32.0
|
||||
hooks:
|
||||
- id: yapf
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.1.0
|
||||
rev: v2.2.1
|
||||
hooks:
|
||||
- id: codespell
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.1.0
|
||||
rev: v4.3.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
exclude: ^dicts/
|
||||
|
@ -206,7 +206,7 @@ Here is a brief description of a few hooks whose parameters may be changed frequ
|
||||
|
||||
- `CheckpointHook`: Used to configure checkpoint-related behavior, such as saving optimal and/or latest weights. You can also modify `interval` to control the checkpoint saving interval. More settings can be found in [CheckpointHook API](mmengine.hooks.CheckpointHook)
|
||||
|
||||
- `VisualizationHook`: Used to configure visualization-related behavior, such as visualizing predicted results during validation or testing. **Default is off**. This Hook also depends on [Visualizaiton Configuration](#visualizaiton-configuration). You can refer to [Visualizer](visualization.md) for more details. For more configuration, you can refer to [VisualizationHook API](mmocr.engine.hooks.VisualizationHook).
|
||||
- `VisualizationHook`: Used to configure visualization-related behavior, such as visualizing predicted results during validation or testing. **Default is off**. This Hook also depends on [Visualization Configuration](#Visualization-configuration). You can refer to [Visualizer](visualization.md) for more details. For more configuration, you can refer to [VisualizationHook API](mmocr.engine.hooks.VisualizationHook).
|
||||
|
||||
If you want to learn more about the configuration of the default hooks and their functions, you can refer to {external+mmengine:doc}`MMEngine: Hooks <tutorials/hook>`.
|
||||
|
||||
@ -569,7 +569,7 @@ test_evaluator = val_evaluator
|
||||
|
||||
<div id="vis_config"></div>
|
||||
|
||||
### Visualizaiton Configuration
|
||||
### Visualization Configuration
|
||||
|
||||
Each task is bound to a task-specific visualizer. The visualizer is mainly used for visualizing or storing intermediate results of user models and visualizing val and test prediction results. The visualization results can also be stored in different backends such as WandB, TensorBoard, etc. through the corresponding visualization backend. Commonly used modification operations can be found in [visualization](visualization.md).
|
||||
|
||||
@ -625,7 +625,7 @@ All these config files are distributed in different folders according to their c
|
||||
<tr>
|
||||
<td class="tg-9wq8">default_runtime.py<br></td>
|
||||
<td class="tg-0pky">-</td>
|
||||
<td class="tg-0pky"><a href="#env_config">Environment Configuration</a><br><a href="#hook_config">Hook Configuration</a><br><a href="#log_config">Log Configuration</a> <br><a href="#weight_config">Checkpoint Loading Configuration</a> <br><a href="#eval_config">Evaluation Configuration</a> <br><a href="#vis_config">Visualizaiton Configuration</a></td>
|
||||
<td class="tg-0pky"><a href="#env_config">Environment Configuration</a><br><a href="#hook_config">Hook Configuration</a><br><a href="#log_config">Log Configuration</a> <br><a href="#weight_config">Checkpoint Loading Configuration</a> <br><a href="#eval_config">Evaluation Configuration</a> <br><a href="#vis_config">Visualization Configuration</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-lboi" rowspan="2">dbnet</td>
|
||||
|
@ -223,7 +223,7 @@ class ImgAugWrapper(BaseTransform):
|
||||
|
||||
@TRANSFORMS.register_module()
|
||||
class TorchVisionWrapper(BaseTransform):
|
||||
"""A wrapper around torchvision trasnforms. It applies specific transform
|
||||
"""A wrapper around torchvision transforms. It applies specific transform
|
||||
to ``img`` and updates ``height`` and ``width`` accordingly.
|
||||
|
||||
Required Keys:
|
||||
|
Loading…
x
Reference in New Issue
Block a user