Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workaround rvc not respecting is_half for CPU #74

Merged
merged 1 commit into from
Jul 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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