@@ -166,7 +166,8 @@ def rvc_ui_model_or_index_path_ui(label: str):
166
166
value = os .path .join (RVC_LOCAL_MODELS_DIR , f"{ model } { extension } " )
167
167
),
168
168
file_path_file .update (value = None ),
169
- ] if model is not None
169
+ ]
170
+ if model is not None
170
171
else [
171
172
file_path .update (),
172
173
file_path_file .update (),
@@ -187,34 +188,40 @@ def rvc_ui():
187
188
with gr .Column ():
188
189
index_path = rvc_ui_model_or_index_path_ui ("Index" )
189
190
with gr .Row ():
190
- f0up_key = gr .Textbox (label = "f0 Up key" , value = "0" )
191
+ f0up_key = gr .Textbox (label = "Pitch Up key" , value = "0" )
191
192
# f0method = gr.Dropdown(
192
193
# ["harvest", "pm", "crepe"], label="f0 Method", value="harvest"
193
194
# )
194
195
f0method = gr .Radio (
195
- ["harvest" , "pm" , "crepe" ], label = "f0 Method" , value = "harvest"
196
+ ["harvest" , "pm" , "crepe" ],
197
+ label = "Pitch Collection Method" ,
198
+ value = "harvest" ,
196
199
)
197
200
index_rate = gr .Slider (
198
- minimum = 0.0 , maximum = 1.0 , step = 0.01 , value = 0.66 , label = "Index Rate "
201
+ minimum = 0.0 , maximum = 1.0 , step = 0.01 , value = 0.66 , label = "Search Feature Ratio "
199
202
)
200
203
filter_radius = gr .Slider (
201
- minimum = 0 , maximum = 10 , step = 1 , value = 3 , label = "Filter Radius"
204
+ minimum = 0 , maximum = 10 , step = 1 , value = 3 , label = "Filter Radius (Pitch) "
202
205
)
203
206
with gr .Row ():
204
207
resample_sr = gr .Slider (
205
- minimum = 0 , maximum = 48000 , step = 1 , value = 0 , label = "Resample SR"
208
+ minimum = 0 ,
209
+ maximum = 48000 ,
210
+ step = 1 ,
211
+ value = 0 ,
212
+ label = "Resample Sample-rate (Bug)" ,
206
213
)
207
214
rms_mix_rate = gr .Slider (
208
- minimum = 0.0 , maximum = 1.0 , step = 0.01 , value = 1 , label = "RMS Mix Rate "
215
+ minimum = 0.0 , maximum = 1.0 , step = 0.01 , value = 1 , label = "Voice Envelope Normalizaiton "
209
216
)
210
217
protect = gr .Slider (
211
- minimum = 0.0 , maximum = 1.0 , step = 0.01 , value = 0.33 , label = "Protect"
218
+ minimum = 0.0 , maximum = 0.5 , step = 0.01 , value = 0.33 , label = "Protect Breath Sounds "
212
219
)
213
220
with gr .Group ():
214
221
gr .Markdown ("### Hubert" )
215
222
with gr .Row ():
216
223
device = gr .Dropdown (
217
- ["cuda:0" , "cpu" ], label = "Device" , value = "cuda:0"
224
+ ["cuda:0" , "cpu" , "mps" ], label = "Device" , value = "cuda:0"
218
225
)
219
226
is_half = gr .Checkbox (
220
227
label = "Use half precision model (Depends on GPU support)" ,
@@ -224,8 +231,8 @@ def rvc_ui():
224
231
value = "Clear Hubert (to reload on next generation)" ,
225
232
variant = "secondary" ,
226
233
).click (
227
- fn = lambda : inject_hubert (None )
228
- ) # type: ignore
234
+ fn = lambda : inject_hubert (None ) # type: ignore
235
+ )
229
236
230
237
with gr .Column ():
231
238
original_audio = Joutai .singleton .rvc_input
0 commit comments