Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade pre commit hooks in master #8964

Merged
merged 3 commits into from
Oct 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
repos:
- repo: https://github.com/PyCQA/flake8
rev: 3.8.3
rev: 5.0.4
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
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/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: check-yaml
Expand All @@ -25,7 +25,7 @@ repos:
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
rev: v2.2.1
hooks:
- id: codespell
- repo: https://github.com/executablebooks/mdformat
Expand Down
2 changes: 1 addition & 1 deletion docs/en/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ Thanks @Boyden, @onnkeat, @st9007a, @vealocia, @yhcao6, @DapangpangX, @yellowdol
- Support [PVT](https://arxiv.org/abs/2102.12122) and [PVTv2](https://arxiv.org/abs/2106.13797) (#5780)
- Support [SOLO](https://arxiv.org/abs/1912.04488) (#5832)
- Support large scale jittering and New Mask R-CNN baselines (#6132)
- Add a general data structrue for the results of models (#5508)
- Add a general data structure for the results of models (#5508)
- Added a base class for one-stage instance segmentation (#5904)
- Speed up `YOLOv3` inference (#5991)
- Release Swin Transformer pre-trained models (#6100)
Expand Down
2 changes: 1 addition & 1 deletion docs/en/tutorials/data_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,5 @@ For each operation, we list the related dict fields that are added/updated/remov

To visualize the output of your augmentation pipeline, `tools/misc/browse_dataset.py`
can help the user to browse a detection dataset (both images and bounding box annotations)
visually, or save the image to a designated directory. More detials can refer to
visually, or save the image to a designated directory. More details can refer to
[useful_tools](../useful_tools.md)
4 changes: 2 additions & 2 deletions mmdet/core/bbox/samplers/sampling_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def random(cls, rng=None, **kwargs):
from mmdet.core.bbox.samplers.random_sampler import RandomSampler
rng = demodata.ensure_rng(rng)

# make probabalistic?
# make probabilistic?
num = 32
pos_fraction = 0.5
neg_pos_ub = -1
Expand All @@ -141,7 +141,7 @@ def random(cls, rng=None, **kwargs):
if gt_labels is None:
add_gt_as_proposals = False
else:
add_gt_as_proposals = True # make probabalistic?
add_gt_as_proposals = True # make probabilistic?

sampler = RandomSampler(
num,
Expand Down
2 changes: 1 addition & 1 deletion mmdet/models/losses/focal_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def sigmoid_focal_loss(pred,
alpha=0.25,
reduction='mean',
avg_factor=None):
r"""A warpper of cuda version `Focal Loss
r"""A wrapper of cuda version `Focal Loss
<https://arxiv.org/abs/1708.02002>`_.

Args:
Expand Down
2 changes: 1 addition & 1 deletion mmdet/models/losses/mse_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@weighted_loss
def mse_loss(pred, target):
"""Warpper of mse loss."""
"""Wrapper of mse loss."""
return F.mse_loss(pred, target, reduction='none')


Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN = true
[codespell]
skip = *.ipynb
quiet-level = 3
ignore-words-list = patten,nd,ty,mot,hist,formating,winn,gool,datas,wan,confids,TOOD,tood,ba
ignore-words-list = patten,nd,ty,mot,hist,formating,winn,gool,datas,wan,confids,TOOD,tood,ba,warmup,nam