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

Fix params #2173

Merged
merged 7 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ repos:
files: setup.py
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.4
rev: v0.8.1
hooks:
# Run the linter.
- id: ruff
Expand All @@ -73,7 +73,7 @@ repos:
- id: codespell
additional_dependencies: ["tomli"]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
rev: v0.43.0
hooks:
- id: markdownlint
- repo: https://github.com/tox-dev/pyproject-fmt
Expand Down
2 changes: 1 addition & 1 deletion albumentations/augmentations/blur/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from albumentations.augmentations.geometric.functional import scale
from albumentations.core.types import EIGHT, ScaleIntType

__all__ = ["blur", "median_blur", "gaussian_blur", "glass_blur", "defocus", "central_zoom", "zoom_blur"]
__all__ = ["blur", "central_zoom", "defocus", "gaussian_blur", "glass_blur", "median_blur", "zoom_blur"]


@preserve_channel_dim
Expand Down
2 changes: 1 addition & 1 deletion albumentations/augmentations/blur/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from . import functional as fblur

__all__ = ["Blur", "MotionBlur", "GaussianBlur", "GlassBlur", "AdvancedBlur", "MedianBlur", "Defocus", "ZoomBlur"]
__all__ = ["AdvancedBlur", "Blur", "Defocus", "GaussianBlur", "GlassBlur", "MedianBlur", "MotionBlur", "ZoomBlur"]


HALF = 0.5
Expand Down
8 changes: 4 additions & 4 deletions albumentations/augmentations/crops/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
from albumentations.core.types import ColorType

__all__ = [
"get_crop_coords",
"crop_bboxes_by_coords",
"crop_keypoints_by_coords",
"get_center_crop_coords",
"crop",
"crop_and_pad",
"crop_and_pad_bboxes",
"crop_and_pad_keypoints",
"crop_bboxes_by_coords",
"crop_keypoints_by_coords",
"get_center_crop_coords",
"get_crop_coords",
]


Expand Down
12 changes: 6 additions & 6 deletions albumentations/augmentations/crops/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@
from . import functional as fcrops

__all__ = [
"RandomCrop",
"BBoxSafeRandomCrop",
"CenterCrop",
"Crop",
"CropAndPad",
"CropNonEmptyMaskIfExists",
"RandomSizedCrop",
"RandomResizedCrop",
"RandomCrop",
"RandomCropFromBorders",
"RandomCropNearBBox",
"RandomResizedCrop",
"RandomSizedBBoxSafeCrop",
"CropAndPad",
"RandomCropFromBorders",
"BBoxSafeRandomCrop",
"RandomSizedCrop",
]


Expand Down
4 changes: 2 additions & 2 deletions albumentations/augmentations/domain_adaptation/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
from albumentations.core.types import MONO_CHANNEL_DIMENSIONS

__all__ = [
"fourier_domain_adaptation",
"apply_histogram",
"adapt_pixel_distribution",
"apply_histogram",
"fourier_domain_adaptation",
]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
from albumentations.core.types import ScaleFloatType

__all__ = [
"HistogramMatching",
"FDA",
"HistogramMatching",
"PixelDistributionAdaptation",
"TemplateTransform",
]
Expand Down
8 changes: 4 additions & 4 deletions albumentations/augmentations/dropout/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
from albumentations.core.types import MONO_CHANNEL_DIMENSIONS, ColorType, DropoutFillValue, InpaintMethod

__all__ = [
"cutout",
"calculate_grid_dimensions",
"channel_dropout",
"filter_keypoints_in_holes",
"generate_random_fill",
"cutout",
"filter_bboxes_by_holes",
"calculate_grid_dimensions",
"filter_keypoints_in_holes",
"generate_grid_holes",
"generate_random_fill",
]


Expand Down
2 changes: 1 addition & 1 deletion albumentations/augmentations/dropout/xy_masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def generate_masks(
max_length: tuple[int, int] | None,
axis: str,
) -> list[tuple[int, int, int, int]]:
if max_length is None or max_length == 0 or isinstance(num_masks, (int, float)) and num_masks == 0:
if max_length is None or max_length == 0 or (isinstance(num_masks, (int, float)) and num_masks == 0):
return []

masks = []
Expand Down
Loading
Loading