From 597e02f0d30a55895448993c9dedf413f2c5f419 Mon Sep 17 00:00:00 2001 From: ryoryon66 <46624038+ryoryon66@users.noreply.github.com> Date: Tue, 12 Mar 2024 01:45:21 +0900 Subject: [PATCH] fix docstring of Downscale. (#1573) --- albumentations/augmentations/transforms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/albumentations/augmentations/transforms.py b/albumentations/augmentations/transforms.py index 06c920911..2975f1c0d 100644 --- a/albumentations/augmentations/transforms.py +++ b/albumentations/augmentations/transforms.py @@ -1696,8 +1696,8 @@ class Downscale(ImageOnlyTransform): """Decreases image quality by downscaling and upscaling back. Args: - scale_min: lower bound on the image scale. Should be < 1. - scale_max: lower bound on the image scale. Should be . + scale_min: lower bound on the image scale. Should be <= scale_max. + scale_max: upper bound on the image scale. Should be < 1. interpolation: cv2 interpolation method. Could be: - single cv2 interpolation flag - selected method will be used for downscale and upscale. - dict(downscale=flag, upscale=flag)