mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-30 18:22:51 +08:00
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:
parent
fcce61b27f
commit
e1f084177d
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user