From 91cbf93bd4ed3f3247dd547236c159ebca9037a4 Mon Sep 17 00:00:00 2001 From: Kevin Patel <47410011+kvnptl@users.noreply.github.com> Date: Tue, 16 May 2023 18:40:11 +0200 Subject: [PATCH] [update] replace np.int with np.int32 As np.int is deprecated --- autoaugment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoaugment.py b/autoaugment.py index 339734c..04942f3 100644 --- a/autoaugment.py +++ b/autoaugment.py @@ -173,7 +173,7 @@ def __init__(self, p1, operation1, magnitude_idx1, p2, operation2, magnitude_idx "translateY": np.linspace(0, 150 / 331, 10), "rotate": np.linspace(0, 30, 10), "color": np.linspace(0.0, 0.9, 10), - "posterize": np.round(np.linspace(8, 4, 10), 0).astype(np.int), + "posterize": np.round(np.linspace(8, 4, 10), 0).astype(np.int32), "solarize": np.linspace(256, 0, 10), "contrast": np.linspace(0.0, 0.9, 10), "sharpness": np.linspace(0.0, 0.9, 10),