Skip to content

Commit

Permalink
Merge pull request #906 from IAHispano/formatter/main
Browse files Browse the repository at this point in the history
chore(format): run black on main
  • Loading branch information
blaisewf authored Dec 6, 2024
2 parents 2f37ec4 + 30e358a commit f62e849
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rvc/infer/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def convert_audio(
return

self.get_vc(model_path, sid)

try:
start_time = time.time()
print(f"Converting audio '{audio_input_path}'...")
Expand Down Expand Up @@ -437,7 +437,6 @@ def get_vc(self, weight_root, sid):
self.setup_vc_instance()
self.loaded_model = weight_root


def cleanup_model(self):
"""
Cleans up the model and releases resources.
Expand Down Expand Up @@ -483,7 +482,7 @@ def setup_network(self):
use_f0=self.use_f0,
text_enc_hidden_dim=self.text_enc_hidden_dim,
is_half=self.config.is_half,
vocoder=self.vocoder
vocoder=self.vocoder,
)
del self.net_g.enc_q
self.net_g.load_state_dict(self.cpt["weight"], strict=False)
Expand Down

0 comments on commit f62e849

Please sign in to comment.