Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisewf committed Dec 1, 2024
1 parent ee2ec36 commit 4d689d2
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 23 deletions.
6 changes: 3 additions & 3 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def load_voices_data():


voices_data = load_voices_data()
locales = list({voice["Locale"] for voice in voices_data})
locales = list({voice["ShortName"] for voice in voices_data})


@lru_cache(maxsize=None)
Expand Down Expand Up @@ -2407,8 +2407,8 @@ def main():
protect=args.protect,
hop_length=args.hop_length,
f0_method=args.f0_method,
input_path=args.input_path,
output_path=args.output_path,
output_tts_path=args.output_tts_path,
output_rvc_path=args.output_rvc_path,
pth_path=args.pth_path,
index_path=args.index_path,
split_audio=args.split_audio,
Expand Down
2 changes: 1 addition & 1 deletion rvc/infer/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def convert_audio_format(input_path, output_path, output_format):
"""
try:
if output_format != "WAV":
print(f"Converting audio to {output_format} format...")
print(f"Saving audio as {output_format}...")
audio, sample_rate = librosa.load(input_path, sr=None)
common_sample_rates = [
8000,
Expand Down
2 changes: 1 addition & 1 deletion rvc/infer/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def get_f0_hybrid(
if methods_str:
methods = [method.strip() for method in methods_str.group(1).split("+")]
f0_computation_stack = []
print(f"Calculating f0 pitch estimations for methods {str(methods)}")
print(f"Calculating f0 pitch estimations for methods: {', '.join(methods)}")
x = x.astype(np.float32)
x /= np.quantile(np.abs(x), 0.999)
for method in methods:
Expand Down
2 changes: 1 addition & 1 deletion tabs/extra/analyzer/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def analyzer_tab():
interactive=False,
)
get_info_button = gr.Button(
value=i18n("Get information about the audio"), variant="primary"
value=i18n("Get information about the audio")
)
image_output = gr.Image(type="filepath", interactive=False)

Expand Down
2 changes: 1 addition & 1 deletion tabs/extra/f0_extractor/f0_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def f0_extractor_tab():
choices=["crepe", "fcpe", "rmvpe"],
value="rmvpe",
)
button = gr.Button(i18n("Extract F0 Curve"), variant="primary")
button = gr.Button(i18n("Extract F0 Curve"))

with gr.Accordion(label=i18n("Output Information")):
txt_output = gr.File(label="F0 Curve", type="filepath")
Expand Down
2 changes: 1 addition & 1 deletion tabs/extra/processing/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def processing_tab():
value="",
max_lines=11,
)
model_view_button = gr.Button(i18n("View"), variant="primary")
model_view_button = gr.Button(i18n("View"))
model_view_button.click(
fn=run_model_information_script,
inputs=[model_view_model_path],
Expand Down
25 changes: 12 additions & 13 deletions tabs/inference/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,12 @@ def inference_tab():
visible=True,
interactive=True,
)
post_process = gr.Checkbox(
label=i18n("Post-Process"),
info=i18n("Post-process the audio to apply effects to the output."),
value=False,
interactive=True,
)
with gr.Row(visible=False) as formant_row:
formant_preset = gr.Dropdown(
label=i18n("Browse presets for formanting"),
Expand Down Expand Up @@ -511,12 +517,6 @@ def inference_tab():
visible=False,
interactive=True,
)
post_process = gr.Checkbox(
label=i18n("Post-Process"),
info=i18n("Post-process the audio to apply effects to the output."),
value=False,
interactive=True,
)
reverb = gr.Checkbox(
label=i18n("Reverb"),
info=i18n("Apply reverb to the audio."),
Expand Down Expand Up @@ -1112,6 +1112,12 @@ def inference_tab():
visible=True,
interactive=True,
)
post_process_batch = gr.Checkbox(
label=i18n("Post-Process"),
info=i18n("Post-process the audio to apply effects to the output."),
value=False,
interactive=True,
)
with gr.Row(visible=False) as formant_row_batch:
formant_preset_batch = gr.Dropdown(
label=i18n("Browse presets for formanting"),
Expand All @@ -1125,7 +1131,6 @@ def inference_tab():
formant_refresh_button_batch = gr.Button(
value="Refresh",
visible=False,
variant="primary",
)
formant_qfrency_batch = gr.Slider(
value=1.0,
Expand All @@ -1147,12 +1152,6 @@ def inference_tab():
visible=False,
interactive=True,
)
post_process_batch = gr.Checkbox(
label=i18n("Post-Process"),
info=i18n("Post-process the audio to apply effects to the output."),
value=False,
interactive=True,
)
reverb_batch = gr.Checkbox(
label=i18n("Reverb"),
info=i18n("Apply reverb to the audio."),
Expand Down
2 changes: 1 addition & 1 deletion tabs/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def train_tab():
with gr.Column():
refresh_export = gr.Button(i18n("Refresh"))
if not os.name == "nt":
upload_exported = gr.Button(i18n("Upload"), variant="primary")
upload_exported = gr.Button(i18n("Upload"))
upload_exported.click(
fn=upload_to_google_drive,
inputs=[pth_dropdown_export, index_dropdown_export],
Expand Down
2 changes: 1 addition & 1 deletion tabs/voice_blender/voice_blender.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def voice_blender_tab():
"Adjusting the position more towards one side or the other will make the model more similar to the first or second."
),
)
model_fusion_button = gr.Button(i18n("Fusion"), variant="primary")
model_fusion_button = gr.Button(i18n("Fusion"))
with gr.Row():
model_fusion_output_info = gr.Textbox(
label=i18n("Output Information"),
Expand Down

0 comments on commit 4d689d2

Please sign in to comment.