Skip to content

Commit

Permalink
Fixed deprecationwarning in sepia transform (#1397)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Druzhinin <dipetm@gmail.com>
  • Loading branch information
ifeherva and Dipet committed Feb 15, 2023
1 parent 6543733 commit bcdf73d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion albumentations/augmentations/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,7 @@ class ToSepia(ImageOnlyTransform):

def __init__(self, always_apply=False, p=0.5):
super(ToSepia, self).__init__(always_apply, p)
self.sepia_transformation_matrix = np.matrix(
self.sepia_transformation_matrix = np.array(
[[0.393, 0.769, 0.189], [0.349, 0.686, 0.168], [0.272, 0.534, 0.131]]
)

Expand Down

0 comments on commit bcdf73d

Please sign in to comment.