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

[Docs] fix docstring #1578

Merged
merged 1 commit into from
Jan 5, 2023
Merged
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 mmedit/datasets/transforms/aug_pixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class BinarizeImage(BaseTransform):
Args:
keys (Sequence[str]): The images to be binarized.
binary_thr (float): Threshold for binarization.
amin (int): Lower limits of pixel value.
amx (int): Upper limits of pixel value.
a_min (int): Lower limits of pixel value.
a_max (int): Upper limits of pixel value.
dtype (np.dtype): Set the data type of the output. Default: np.uint8
"""

Expand Down Expand Up @@ -86,8 +86,8 @@ class Clip(BaseTransform):

Args:
keys (list[str]): The keys whose values are clipped.
amin (int): Lower limits of pixel value.
amx (int): Upper limits of pixel value.
a_min (int): Lower limits of pixel value.
a_max (int): Upper limits of pixel value.
"""

def __init__(self, keys, a_min=0, a_max=255):
Expand Down