Closed zahragolpa closed 2 years ago
I get an error when I run RandomGamma transform with a float gamma_limit value.
gamma_limit
Steps to reproduce the behavior:
import albumentations as A import cv2 input_image_numpy = cv2.imread(PATH_TO_INPUT_IMAGE) transform = A.Compose([A.RandomGamma(gamma_limit=(80.8, 120.2), p=1)]) transformed = transform(image=input_image_numpy) transformed_image = transformed["image"] cv2.imwrite('output.png', transformed_image)
The error I get:
ValueError: non-integer arg 1 for randrange()
Should produce the output image even when input is float, as stated in the documentation.
Fixed in #1287
🐛 Bug
I get an error when I run RandomGamma transform with a float
gamma_limit
value.To Reproduce
Steps to reproduce the behavior:
gamma_limit
value.The error I get:
Expected behavior
Should produce the output image even when input is float, as stated in the documentation.
Environment