@@ -449,7 +449,7 @@ def change_version19(sr2, if_f0_3, version19):
449
449
to_return_sr2 = (
450
450
{"choices" : ["40k" , "48k" ], "__type__" : "update" , "value" : sr2 }
451
451
if version19 == "v1"
452
- else {"choices" : ["40k " , "48k " , "32k " ], "__type__" : "update" , "value" : sr2 }
452
+ else {"choices" : ["32k " , "40k " , "48k " ], "__type__" : "update" , "value" : sr2 }
453
453
)
454
454
f0_str = "f0" if if_f0_3 else ""
455
455
return (
@@ -557,7 +557,7 @@ def click_train(
557
557
logger .info ("No pretrained Generator" )
558
558
if pretrained_D15 == "" :
559
559
logger .info ("No pretrained Discriminator" )
560
- if version19 == "v1" or sr2 == "40k" :
560
+ if version19 == "v1" or sr2 == "40k" : # v2 40k falls back to v1
561
561
config_path = "v1/%s.json" % sr2
562
562
else :
563
563
config_path = "v2/%s.json" % sr2
@@ -1201,8 +1201,8 @@ def change_f0_method(f0method8):
1201
1201
with gr .Row ():
1202
1202
sr2 = gr .Radio (
1203
1203
label = i18n ("Target sample rate" ),
1204
- choices = ["40k" , "48k" ],
1205
- value = "40k " ,
1204
+ choices = ["32k" , " 40k" , "48k" ],
1205
+ value = "48k " ,
1206
1206
interactive = True ,
1207
1207
)
1208
1208
if_f0_3 = gr .Radio (
@@ -1363,12 +1363,12 @@ def change_f0_method(f0method8):
1363
1363
with gr .Column ():
1364
1364
pretrained_G14 = gr .Textbox (
1365
1365
label = i18n ("Load pre-trained base model G path" ),
1366
- value = "assets/pretrained_v2/f0G40k .pth" ,
1366
+ value = "assets/pretrained_v2/f0G48k .pth" ,
1367
1367
interactive = True ,
1368
1368
)
1369
1369
pretrained_D15 = gr .Textbox (
1370
1370
label = i18n ("Load pre-trained base model D path" ),
1371
- value = "assets/pretrained_v2/f0D40k .pth" ,
1371
+ value = "assets/pretrained_v2/f0D48k .pth" ,
1372
1372
interactive = True ,
1373
1373
)
1374
1374
gpus16 = gr .Textbox (
@@ -1497,8 +1497,8 @@ def change_f0_method(f0method8):
1497
1497
with gr .Column ():
1498
1498
sr_ = gr .Radio (
1499
1499
label = i18n ("Target sample rate" ),
1500
- choices = ["40k" , "48k" ],
1501
- value = "40k " ,
1500
+ choices = ["32k" , " 40k" , "48k" ],
1501
+ value = "48k " ,
1502
1502
interactive = True ,
1503
1503
)
1504
1504
if_f0_ = gr .Radio (
@@ -1609,7 +1609,7 @@ def change_f0_method(f0method8):
1609
1609
sr__ = gr .Radio (
1610
1610
label = i18n ("Target sample rate" ),
1611
1611
choices = ["32k" , "40k" , "48k" ],
1612
- value = "40k " ,
1612
+ value = "48k " ,
1613
1613
interactive = True ,
1614
1614
)
1615
1615
if_f0__ = gr .Radio (
0 commit comments