mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-04-26 22:48:59 +08:00
Merge pull request #1533 from RVC-Project/formatter-dev
chore(format): run black on dev
This commit is contained in:
commit
e2d494d1a7
@ -229,10 +229,10 @@ class RVC:
|
|||||||
pitch_ceiling=1100,
|
pitch_ceiling=1100,
|
||||||
)
|
)
|
||||||
assert np.abs(s.t1 - 1.5 / f0_min) < 0.001
|
assert np.abs(s.t1 - 1.5 / f0_min) < 0.001
|
||||||
f0 = s.selected_array['frequency']
|
f0 = s.selected_array["frequency"]
|
||||||
if len(f0) < p_len:
|
if len(f0) < p_len:
|
||||||
f0 = np.pad(f0, (0, p_len - len(f0)))
|
f0 = np.pad(f0, (0, p_len - len(f0)))
|
||||||
f0 = f0[: p_len]
|
f0 = f0[:p_len]
|
||||||
f0 *= pow(2, f0_up_key / 12)
|
f0 *= pow(2, f0_up_key / 12)
|
||||||
return self.get_f0_post(f0)
|
return self.get_f0_post(f0)
|
||||||
if n_cpu == 1:
|
if n_cpu == 1:
|
||||||
@ -350,7 +350,7 @@ class RVC:
|
|||||||
feats = (
|
feats = (
|
||||||
self.model.final_proj(logits[0]) if self.version == "v1" else logits[0]
|
self.model.final_proj(logits[0]) if self.version == "v1" else logits[0]
|
||||||
)
|
)
|
||||||
feats = torch.cat((feats, feats[:,-1:,:]), 1)
|
feats = torch.cat((feats, feats[:, -1:, :]), 1)
|
||||||
t2 = ttime()
|
t2 = ttime()
|
||||||
try:
|
try:
|
||||||
if hasattr(self, "index") and self.index_rate != 0:
|
if hasattr(self, "index") and self.index_rate != 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user