Skip to content

Commit

Permalink
[Fix] np.int is deprecated (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeowZheng authored Jan 10, 2023
1 parent 5a2fdb0 commit f2588c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmflow/datasets/utils/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def adjust_hue(img, hue_factor):
else:
assert hue_factor >= -0.5 and hue_factor <= 0.5
img = mmcv.bgr2hsv(img)
img[:, :, 0] = (img[:, :, 0].astype(np.int) + int(hue_factor * 180.) +
img[:, :, 0] = (img[:, :, 0].astype(np.int_) + int(hue_factor * 180.) +
180) % 180
img = mmcv.hsv2bgr(img)
return img
Expand Down

0 comments on commit f2588c0

Please # to comment.