mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-31 02:32:51 +08:00
Format code (#779)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
0cf474f820
commit
f63783c348
@ -48,7 +48,11 @@ if __name__ == "__main__":
|
||||
from i18n import I18nAuto
|
||||
|
||||
i18n = I18nAuto()
|
||||
device = torch.device("cuda" if torch.cuda.is_available() else ("mps" if torch.backends.mps.is_available() else "cpu"))
|
||||
device = torch.device(
|
||||
"cuda"
|
||||
if torch.cuda.is_available()
|
||||
else ("mps" if torch.backends.mps.is_available() else "cpu")
|
||||
)
|
||||
current_dir = os.getcwd()
|
||||
inp_q = Queue()
|
||||
opt_q = Queue()
|
||||
@ -560,7 +564,8 @@ if __name__ == "__main__":
|
||||
else:
|
||||
outdata[:] = np.tile(
|
||||
nr.reduce_noise(
|
||||
y=self.output_wav[:].cpu().numpy(), sr=self.config.samplerate
|
||||
y=self.output_wav[:].cpu().numpy(),
|
||||
sr=self.config.samplerate,
|
||||
),
|
||||
(2, 1),
|
||||
).T
|
||||
|
Loading…
Reference in New Issue
Block a user