Skip to content

Commit 7356044

Browse files
authored
1 parent 2edeb71 commit 7356044

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

gui_v0.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def get_f0(self, x, f0_up_key, inp_f0=None):
131131
) + 1
132132
f0_mel[f0_mel <= 1] = 1
133133
f0_mel[f0_mel > 255] = 255
134-
f0_coarse = np.rint(f0_mel).astype(np.int)
134+
f0_coarse = np.rint(f0_mel).astype(np.int32)
135135
return f0_coarse, f0bak # 1-0
136136

137137
def infer(self, feats: torch.Tensor) -> np.ndarray:

guidml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def get_f0(self, x, f0_up_key, inp_f0=None):
145145
) + 1
146146
f0_mel[f0_mel <= 1] = 1
147147
f0_mel[f0_mel > 255] = 255
148-
f0_coarse = np.rint(f0_mel).astype(np.int)
148+
f0_coarse = np.rint(f0_mel).astype(np.int32)
149149
return f0_coarse, f0bak # 1-0
150150

151151
def infer(self, feats: torch.Tensor) -> np.ndarray:

rvc_for_realtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def get_f0_post(self, f0):
100100
) + 1
101101
f0_mel[f0_mel <= 1] = 1
102102
f0_mel[f0_mel > 255] = 255
103-
f0_coarse = np.rint(f0_mel).astype(np.int)
103+
f0_coarse = np.rint(f0_mel).astype(np.int32)
104104
return f0_coarse, f0bak
105105

106106
def get_f0(self, x, f0_up_key, n_cpu, method="harvest"):

tools/infer/infer-pm-index256.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def get_f0(x, p_len, f0_up_key=0):
112112
f0_mel[f0_mel <= 1] = 1
113113
f0_mel[f0_mel > 255] = 255
114114
# f0_mel[f0_mel > 188] = 188
115-
f0_coarse = np.rint(f0_mel).astype(np.int)
115+
f0_coarse = np.rint(f0_mel).astype(np.int32)
116116
return f0_coarse, f0bak
117117

118118

vc_infer_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def get_f0(
158158
) + 1
159159
f0_mel[f0_mel <= 1] = 1
160160
f0_mel[f0_mel > 255] = 255
161-
f0_coarse = np.rint(f0_mel).astype(np.int)
161+
f0_coarse = np.rint(f0_mel).astype(np.int32)
162162
return f0_coarse, f0bak # 1-0
163163

164164
def vc(

0 commit comments

Comments
 (0)