Skip to content

Commit a6c6262

Browse files
chore(format): run black on dev (#25)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 7572c44 commit a6c6262

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

infer/lib/jit/synthesizer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ def get_synthesizer_ckpt(cpt, device=torch.device("cpu")):
1212
elif version == "v2":
1313
encoder_dim = 768
1414
net_g = SynthesizerTrnMsNSFsid(
15-
*cpt["config"], encoder_dim=encoder_dim, use_f0 = if_f0==1,
15+
*cpt["config"],
16+
encoder_dim=encoder_dim,
17+
use_f0=if_f0 == 1,
1618
)
1719
del net_g.enc_q
1820
net_g.load_state_dict(cpt["weight"], strict=False)

rvc/onnx/infer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ def infer(
119119
rnd = np.random.randn(1, 192, hubert_length).astype(np.float32)
120120
hubert_length = np.array([hubert_length]).astype(np.int64)
121121

122-
out_wav = self.forward(
123-
hubert, hubert_length, pitch, pitchf, ds, rnd
124-
).squeeze()
122+
out_wav = self.forward(hubert, hubert_length, pitch, pitchf, ds, rnd).squeeze()
125123

126124
out_wav = np.pad(out_wav, (0, 2 * self.hop_len), "constant")
127125

0 commit comments

Comments
 (0)