Spaces:
Runtime error
Runtime error
Commit
·
80eeadf
1
Parent(s):
8830df3
Update vc_infer_pipeline.py
Browse files- vc_infer_pipeline.py +0 -6
vc_infer_pipeline.py
CHANGED
|
@@ -174,7 +174,6 @@ class VC(object):
|
|
| 174 |
big_npy,
|
| 175 |
index_rate,
|
| 176 |
version,
|
| 177 |
-
protect,
|
| 178 |
): # ,file_index,file_big_npy
|
| 179 |
feats = torch.from_numpy(audio0)
|
| 180 |
if self.is_half:
|
|
@@ -270,7 +269,6 @@ class VC(object):
|
|
| 270 |
resample_sr,
|
| 271 |
rms_mix_rate,
|
| 272 |
version,
|
| 273 |
-
protect,
|
| 274 |
f0_file=None,
|
| 275 |
):
|
| 276 |
if (
|
|
@@ -358,7 +356,6 @@ class VC(object):
|
|
| 358 |
big_npy,
|
| 359 |
index_rate,
|
| 360 |
version,
|
| 361 |
-
protect,
|
| 362 |
)[self.t_pad_tgt : -self.t_pad_tgt]
|
| 363 |
)
|
| 364 |
else:
|
|
@@ -375,7 +372,6 @@ class VC(object):
|
|
| 375 |
big_npy,
|
| 376 |
index_rate,
|
| 377 |
version,
|
| 378 |
-
protect,
|
| 379 |
)[self.t_pad_tgt : -self.t_pad_tgt]
|
| 380 |
)
|
| 381 |
s = t
|
|
@@ -393,7 +389,6 @@ class VC(object):
|
|
| 393 |
big_npy,
|
| 394 |
index_rate,
|
| 395 |
version,
|
| 396 |
-
protect,
|
| 397 |
)[self.t_pad_tgt : -self.t_pad_tgt]
|
| 398 |
)
|
| 399 |
else:
|
|
@@ -410,7 +405,6 @@ class VC(object):
|
|
| 410 |
big_npy,
|
| 411 |
index_rate,
|
| 412 |
version,
|
| 413 |
-
protect,
|
| 414 |
)[self.t_pad_tgt : -self.t_pad_tgt]
|
| 415 |
)
|
| 416 |
audio_opt = np.concatenate(audio_opt)
|
|
|
|
| 174 |
big_npy,
|
| 175 |
index_rate,
|
| 176 |
version,
|
|
|
|
| 177 |
): # ,file_index,file_big_npy
|
| 178 |
feats = torch.from_numpy(audio0)
|
| 179 |
if self.is_half:
|
|
|
|
| 269 |
resample_sr,
|
| 270 |
rms_mix_rate,
|
| 271 |
version,
|
|
|
|
| 272 |
f0_file=None,
|
| 273 |
):
|
| 274 |
if (
|
|
|
|
| 356 |
big_npy,
|
| 357 |
index_rate,
|
| 358 |
version,
|
|
|
|
| 359 |
)[self.t_pad_tgt : -self.t_pad_tgt]
|
| 360 |
)
|
| 361 |
else:
|
|
|
|
| 372 |
big_npy,
|
| 373 |
index_rate,
|
| 374 |
version,
|
|
|
|
| 375 |
)[self.t_pad_tgt : -self.t_pad_tgt]
|
| 376 |
)
|
| 377 |
s = t
|
|
|
|
| 389 |
big_npy,
|
| 390 |
index_rate,
|
| 391 |
version,
|
|
|
|
| 392 |
)[self.t_pad_tgt : -self.t_pad_tgt]
|
| 393 |
)
|
| 394 |
else:
|
|
|
|
| 405 |
big_npy,
|
| 406 |
index_rate,
|
| 407 |
version,
|
|
|
|
| 408 |
)[self.t_pad_tgt : -self.t_pad_tgt]
|
| 409 |
)
|
| 410 |
audio_opt = np.concatenate(audio_opt)
|