Replace deprecated Numpy function `np.int`. (#434)

It’s an alias for just `int` and it’s being deprecated:
https://numpy.org/devdocs/release/1.20.0-notes.html

Co-authored-by: Ftps <63702646+Tps-F@users.noreply.github.com>
This commit is contained in:
André Thieme 2023-06-10 16:55:34 +02:00 committed by GitHub
parent fcce61b27f
commit e1f084177d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class FeatureInput(object):
# use 0 or 1
f0_mel[f0_mel <= 1] = 1
f0_mel[f0_mel > self.f0_bin - 1] = self.f0_bin - 1
f0_coarse = np.rint(f0_mel).astype(np.int)
f0_coarse = np.rint(f0_mel).astype(int)
assert f0_coarse.max() <= 255 and f0_coarse.min() >= 1, (
f0_coarse.max(),
f0_coarse.min(),