Skip to content

Commit

Permalink
guh
Browse files Browse the repository at this point in the history
  • Loading branch information
milocress committed Jun 12, 2024
1 parent 329df18 commit c4da63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer/algorithms/utils/augmentation_primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def rotate(pil_img: Image.Image, level: float):
degrees = _int_parameter(_sample_level(level), 30)
if np.random.uniform() > 0.5:
degrees = -degrees
return pil_img.rotate(degrees, resample=Image.BILINEAR)
return pil_img.rotate(degrees, resample=Image.Resampling.BILINEAR)


def solarize(pil_img: Image.Image, level: float):
Expand Down

0 comments on commit c4da63a

Please sign in to comment.