mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-09 20:40:48 +08:00
optimize(web): remove unnecessary gt.Groups
This commit is contained in:
16
web.py
16
web.py
@@ -831,7 +831,6 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
)
|
)
|
||||||
modelinfo = gr.Textbox(label=i18n("Model info"), max_lines=8)
|
modelinfo = gr.Textbox(label=i18n("Model info"), max_lines=8)
|
||||||
with gr.TabItem(i18n("Single inference")):
|
with gr.TabItem(i18n("Single inference")):
|
||||||
with gr.Group():
|
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
with gr.Column():
|
with gr.Column():
|
||||||
vc_transform0 = gr.Number(
|
vc_transform0 = gr.Number(
|
||||||
@@ -936,7 +935,7 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
outputs=[sid0, file_index2],
|
outputs=[sid0, file_index2],
|
||||||
api_name="infer_refresh",
|
api_name="infer_refresh",
|
||||||
)
|
)
|
||||||
with gr.Group():
|
|
||||||
vc_output1 = gr.Textbox(label=i18n("Output information"))
|
vc_output1 = gr.Textbox(label=i18n("Output information"))
|
||||||
|
|
||||||
but0.click(
|
but0.click(
|
||||||
@@ -1121,7 +1120,6 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
with gr.TabItem(
|
with gr.TabItem(
|
||||||
i18n("Vocals/Accompaniment Separation & Reverberation Removal")
|
i18n("Vocals/Accompaniment Separation & Reverberation Removal")
|
||||||
):
|
):
|
||||||
with gr.Group():
|
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
value=i18n(
|
value=i18n(
|
||||||
"Batch processing for vocal accompaniment separation using the UVR5 model.<br>Example of a valid folder path format: D:\\path\\to\\input\\folder (copy it from the file manager address bar).<br>The model is divided into three categories:<br>1. Preserve vocals: Choose this option for audio without harmonies. It preserves vocals better than HP5. It includes two built-in models: HP2 and HP3. HP3 may slightly leak accompaniment but preserves vocals slightly better than HP2.<br>2. Preserve main vocals only: Choose this option for audio with harmonies. It may weaken the main vocals. It includes one built-in model: HP5.<br>3. De-reverb and de-delay models (by FoxJoy):<br> (1) MDX-Net: The best choice for stereo reverb removal but cannot remove mono reverb;<br> (234) DeEcho: Removes delay effects. Aggressive mode removes more thoroughly than Normal mode. DeReverb additionally removes reverb and can remove mono reverb, but not very effectively for heavily reverberated high-frequency content.<br>De-reverb/de-delay notes:<br>1. The processing time for the DeEcho-DeReverb model is approximately twice as long as the other two DeEcho models.<br>2. The MDX-Net-Dereverb model is quite slow.<br>3. The recommended cleanest configuration is to apply MDX-Net first and then DeEcho-Aggressive."
|
"Batch processing for vocal accompaniment separation using the UVR5 model.<br>Example of a valid folder path format: D:\\path\\to\\input\\folder (copy it from the file manager address bar).<br>The model is divided into three categories:<br>1. Preserve vocals: Choose this option for audio without harmonies. It preserves vocals better than HP5. It includes two built-in models: HP2 and HP3. HP3 may slightly leak accompaniment but preserves vocals slightly better than HP2.<br>2. Preserve main vocals only: Choose this option for audio with harmonies. It may weaken the main vocals. It includes one built-in model: HP5.<br>3. De-reverb and de-delay models (by FoxJoy):<br> (1) MDX-Net: The best choice for stereo reverb removal but cannot remove mono reverb;<br> (234) DeEcho: Removes delay effects. Aggressive mode removes more thoroughly than Normal mode. DeReverb additionally removes reverb and can remove mono reverb, but not very effectively for heavily reverberated high-frequency content.<br>De-reverb/de-delay notes:<br>1. The processing time for the DeEcho-DeReverb model is approximately twice as long as the other two DeEcho models.<br>2. The MDX-Net-Dereverb model is quite slow.<br>3. The recommended cleanest configuration is to apply MDX-Net first and then DeEcho-Aggressive."
|
||||||
@@ -1227,7 +1225,6 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
interactive=True,
|
interactive=True,
|
||||||
visible=True,
|
visible=True,
|
||||||
)
|
)
|
||||||
with gr.Group(): # 暂时单人的, 后面支持最多4人的#数据处理
|
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
value=i18n(
|
value=i18n(
|
||||||
"### Step 2. Audio processing. \n#### 1. Slicing.\nAutomatically traverse all files in the training folder that can be decoded into audio and perform slice normalization. Generates 2 wav folders in the experiment directory. Currently, only single-singer/speaker training is supported."
|
"### Step 2. Audio processing. \n#### 1. Slicing.\nAutomatically traverse all files in the training folder that can be decoded into audio and perform slice normalization. Generates 2 wav folders in the experiment directory. Currently, only single-singer/speaker training is supported."
|
||||||
@@ -1255,7 +1252,6 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
[info1],
|
[info1],
|
||||||
api_name="train_preprocess",
|
api_name="train_preprocess",
|
||||||
)
|
)
|
||||||
with gr.Group():
|
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
value=i18n(
|
value=i18n(
|
||||||
"#### 2. Feature extraction.\nUse CPU to extract pitch (if the model has pitch), use GPU to extract features (select GPU index)."
|
"#### 2. Feature extraction.\nUse CPU to extract pitch (if the model has pitch), use GPU to extract features (select GPU index)."
|
||||||
@@ -1314,7 +1310,6 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
[info2],
|
[info2],
|
||||||
api_name="train_extract_f0_feature",
|
api_name="train_extract_f0_feature",
|
||||||
)
|
)
|
||||||
with gr.Group():
|
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
value=i18n(
|
value=i18n(
|
||||||
"### Step 3. Start training.\nFill in the training settings and start training the model and index."
|
"### Step 3. Start training.\nFill in the training settings and start training the model and index."
|
||||||
@@ -1460,7 +1455,6 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
)
|
)
|
||||||
|
|
||||||
with gr.TabItem(i18n("ckpt Processing")):
|
with gr.TabItem(i18n("ckpt Processing")):
|
||||||
with gr.Group():
|
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
value=i18n(
|
value=i18n(
|
||||||
"### Model comparison\n> You can get model ID (long) from `View model information` below.\n\nCalculate a similarity between two models."
|
"### Model comparison\n> You can get model ID (long) from `View model information` below.\n\nCalculate a similarity between two models."
|
||||||
@@ -1486,7 +1480,7 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
infomodelcmp,
|
infomodelcmp,
|
||||||
api_name="ckpt_merge",
|
api_name="ckpt_merge",
|
||||||
)
|
)
|
||||||
with gr.Group():
|
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
value=i18n("### Model fusion\nCan be used to test timbre fusion.")
|
value=i18n("### Model fusion\nCan be used to test timbre fusion.")
|
||||||
)
|
)
|
||||||
@@ -1555,7 +1549,7 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
info4,
|
info4,
|
||||||
api_name="ckpt_merge",
|
api_name="ckpt_merge",
|
||||||
) # def merge(path1,path2,alpha1,sr,f0,info):
|
) # def merge(path1,path2,alpha1,sr,f0,info):
|
||||||
with gr.Group():
|
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
value=i18n(
|
value=i18n(
|
||||||
"### Modify model information\n> Only supported for small model files extracted from the 'weights' folder."
|
"### Modify model information\n> Only supported for small model files extracted from the 'weights' folder."
|
||||||
@@ -1589,7 +1583,7 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
info5,
|
info5,
|
||||||
api_name="ckpt_modify",
|
api_name="ckpt_modify",
|
||||||
)
|
)
|
||||||
with gr.Group():
|
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
value=i18n(
|
value=i18n(
|
||||||
"### View model information\n> Only supported for small model files extracted from the 'weights' folder."
|
"### View model information\n> Only supported for small model files extracted from the 'weights' folder."
|
||||||
@@ -1602,7 +1596,7 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|||||||
with gr.Column():
|
with gr.Column():
|
||||||
info6 = gr.Textbox(label=i18n("Output information"), value="")
|
info6 = gr.Textbox(label=i18n("Output information"), value="")
|
||||||
but8.click(show_info, [ckpt_path1], info6, api_name="ckpt_show")
|
but8.click(show_info, [ckpt_path1], info6, api_name="ckpt_show")
|
||||||
with gr.Group():
|
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
value=i18n(
|
value=i18n(
|
||||||
"### Model extraction\n> Enter the path of the large file model under the 'logs' folder.\n\nThis is useful if you want to stop training halfway and manually extract and save a small model file, or if you want to test an intermediate model."
|
"### Model extraction\n> Enter the path of the large file model under the 'logs' folder.\n\nThis is useful if you want to stop training halfway and manually extract and save a small model file, or if you want to test an intermediate model."
|
||||||
|
|||||||
Reference in New Issue
Block a user