Skip to content

Commit 8dd1ffd

Browse files
fix(pre-commit): 🎨 auto format pre-commit hooks
1 parent d34081c commit 8dd1ffd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/rfdetr/datasets/kornia_transforms.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -602,14 +602,14 @@ def _make_perspective(params: dict[str, Any]) -> Any:
602602
"""Build a ``K.RandomPerspective`` from aug_config ``Perspective`` params.
603603
604604
Both libraries express the same thing, the corner displacement as a fraction of the image side, so ``scale`` maps
605-
onto ``distortion_scale`` directly. The asymmetry is the same one ``GaussNoise`` has: Albumentations samples a
606-
fresh fraction per call from a ``(min, max)`` range, while Kornia takes a single fixed value, so a non-degenerate
607-
pair collapses to its upper bound and the divergence is logged.
605+
onto ``distortion_scale`` directly. The asymmetry is the same one ``GaussNoise`` has: Albumentations samples a fresh
606+
fraction per call from a ``(min, max)`` range, while Kornia takes a single fixed value, so a non-degenerate pair
607+
collapses to its upper bound and the divergence is logged.
608608
609609
``keep_size`` is not accepted. Albumentations defaults it to ``True`` (the output keeps the input's height and
610610
width) and Kornia's ``RandomPerspective`` always behaves that way, so the default maps cleanly; ``keep_size=False``
611-
would change the output resolution, which this pipeline cannot express (see the note in :func:`build_kornia_pipeline`
612-
about size-preserving transforms), so it is refused rather than silently ignored.
611+
would change the output resolution, which this pipeline cannot express (see the note in
612+
:func:`build_kornia_pipeline` about size-preserving transforms), so it is refused rather than silently ignored.
613613
"""
614614
from kornia.augmentation import RandomPerspective
615615

0 commit comments

Comments
 (0)