mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-01-19 18:41:52 +00:00
replace np.int with np.int32 (#948)
ref: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
This commit is contained in:
@@ -112,7 +112,7 @@ def get_f0(x, p_len, f0_up_key=0):
|
||||
f0_mel[f0_mel <= 1] = 1
|
||||
f0_mel[f0_mel > 255] = 255
|
||||
# f0_mel[f0_mel > 188] = 188
|
||||
f0_coarse = np.rint(f0_mel).astype(np.int)
|
||||
f0_coarse = np.rint(f0_mel).astype(np.int32)
|
||||
return f0_coarse, f0bak
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user