mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-05 01:10:22 +08:00
chore(format): run black on dev (#98)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7befbd10d9
commit
19619161be
@@ -40,7 +40,7 @@ is_half = sys.argv[5] == "True"
|
||||
|
||||
|
||||
class FeatureInput(object):
|
||||
def __init__(self, is_half: bool, device = "cpu", samplerate=16000, hop_size=160):
|
||||
def __init__(self, is_half: bool, device="cpu", samplerate=16000, hop_size=160):
|
||||
self.fs = samplerate
|
||||
self.hop = hop_size
|
||||
|
||||
@@ -75,7 +75,9 @@ class FeatureInput(object):
|
||||
):
|
||||
continue
|
||||
x = load_audio(inp_path, self.fs)
|
||||
coarse_pit, feature_pit = self.f0_gen.calculate(x, x.shape[0] // self.hop, 0, f0_method, None)
|
||||
coarse_pit, feature_pit = self.f0_gen.calculate(
|
||||
x, x.shape[0] // self.hop, 0, f0_method, None
|
||||
)
|
||||
np.save(
|
||||
opt_path2,
|
||||
feature_pit,
|
||||
|
||||
@@ -73,7 +73,6 @@ class Pipeline(object):
|
||||
self.sr,
|
||||
)
|
||||
|
||||
|
||||
def vc(
|
||||
self,
|
||||
model,
|
||||
|
||||
Reference in New Issue
Block a user