Skip to content

Commit

Permalink
Merge pull request #532 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 Aug 2, 2024
2 parents 6f99c18 + 125ab10 commit 71755fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion rvc/train/extract/extract_f0_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def main(exp_dir, f0_method, hop_length, num_processes, gpus):
part_paths = paths[idx::num_gpus]
process_partials.append((feature_input, part_paths))
except Exception as error:
print(f"Oops, there was an issue initializing GPU {device} ({error}). Maybe you don't have a GPU? No worries, switching to CPU for now.")
print(
f"Oops, there was an issue initializing GPU {device} ({error}). Maybe you don't have a GPU? No worries, switching to CPU for now."
)
feature_input = FeatureInput(device="cpu")
part_paths = paths[idx::num_gpus]
process_partials.append((feature_input, part_paths))
Expand Down
11 changes: 9 additions & 2 deletions tabs/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,12 @@ def train_tab():
interactive=True,
)

with gr.Accordion(i18n("We prioritize running the model extraction on the GPU for faster performance. If you prefer to use the CPU, simply leave the GPU field blank."), open=False):
with gr.Accordion(
i18n(
"We prioritize running the model extraction on the GPU for faster performance. If you prefer to use the CPU, simply leave the GPU field blank."
),
open=False,
):
with gr.Row():
with gr.Column():
cpu_cores_extract = gr.Slider(
Expand Down Expand Up @@ -467,7 +472,9 @@ def train_tab():
embedder_custom_refresh = gr.Button(i18n("Refresh"))
embedder_model_custom = gr.Dropdown(
label=i18n("Custom Embedder"),
info=i18n("Select the custom embedder to use for the conversion."),
info=i18n(
"Select the custom embedder to use for the conversion."
),
choices=sorted(get_embedder_custom_list()),
interactive=True,
allow_custom_value=True,
Expand Down

0 comments on commit 71755fb

Please sign in to comment.