Skip to content

Commit

Permalink
workaround rvc not respecting is_half for CPU (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsxdalv authored Jul 16, 2023
1 parent f4f0c7a commit f989338
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rvc_tab/rvc_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def run_rvc(
_protect=protect,
)

from rvc_beta.infer_batch_rvc import config
if device == "cpu": # Workaround for "slow_conv2d_cpu" not implemented for 'Half'
config.is_half = is_half

if infer_batch_rvc.hubert_model is None:
get_and_load_hubert()

Expand Down Expand Up @@ -134,7 +138,7 @@ def rvc_ui():
button = gr.Button(value="Convert", variant="primary")
result = gr.Audio(label="result", interactive=False)
open_folder_button = gr.Button(value="Open outputs folder", variant="secondary")
open_folder_button.click(lambda: open_folder("outputs-rvc"), inputs=result)
open_folder_button.click(lambda: open_folder("outputs-rvc"))

button.click(
run_rvc,
Expand Down

0 comments on commit f989338

Please sign in to comment.