Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,56 +16,60 @@ use_autocast = device == "cuda"
|
|
16 |
#=========================#
|
17 |
ROFORMER_MODELS = {
|
18 |
# BS Roformer
|
19 |
-
'BS Roformer | Chorus Male-Female by Sucial': 'model_chorus_bs_roformer_ep_267_sdr_24.1275.ckpt',
|
20 |
-
'BS-Roformer-De-Reverb': 'deverb_bs_roformer_8_384dim_10depth.ckpt',
|
21 |
'BS-Roformer-Viperx-1053': 'model_bs_roformer_ep_937_sdr_10.5309.ckpt',
|
22 |
'BS-Roformer-Viperx-1296': 'model_bs_roformer_ep_368_sdr_12.9628.ckpt',
|
23 |
'BS-Roformer-Viperx-1297': 'model_bs_roformer_ep_317_sdr_12.9755.ckpt',
|
|
|
|
|
24 |
|
25 |
# MelBand Roformer
|
26 |
-
'MelBand Roformer | Aspiration by Sucial': 'aspiration_mel_band_roformer_sdr_18.9845.ckpt',
|
27 |
-
'MelBand Roformer | Aspiration Less Aggressive by Sucial': 'aspiration_mel_band_roformer_less_aggr_sdr_18.1201.ckpt',
|
28 |
-
'MelBand Roformer | Bleed Suppressor V1 by unwa-97chris': 'mel_band_roformer_bleed_suppressor_v1.ckpt',
|
29 |
'Mel-Roformer-Crowd-Aufr33-Viperx': 'mel_band_roformer_crowd_aufr33_viperx_sdr_8.7144.ckpt',
|
30 |
-
'Mel-Roformer-Denoise-Aufr33': 'denoise_mel_band_roformer_aufr33_sdr_27.9959.ckpt',
|
31 |
-
'Mel-Roformer-Denoise-Aufr33-Aggr': 'denoise_mel_band_roformer_aufr33_aggr_sdr_27.9768.ckpt',
|
32 |
-
'MelBand Roformer | De-Reverb by anvuew': 'dereverb_mel_band_roformer_anvuew_sdr_19.1729.ckpt',
|
33 |
-
'MelBand Roformer | De-Reverb Less Aggressive by anvuew': 'dereverb_mel_band_roformer_less_aggressive_anvuew_sdr_18.8050.ckpt',
|
34 |
-
'MelBand Roformer | De-Reverb-Echo by Sucial': 'dereverb-echo_mel_band_roformer_sdr_10.0169.ckpt',
|
35 |
-
'MelBand Roformer | De-Reverb-Echo V2 by Sucial': 'dereverb-echo_mel_band_roformer_sdr_13.4843_v2.ckpt',
|
36 |
'Mel-Roformer-Karaoke-Aufr33-Viperx': 'mel_band_roformer_karaoke_aufr33_viperx_sdr_10.1956.ckpt',
|
37 |
'Mel-Roformer-Viperx-1143': 'model_mel_band_roformer_ep_3005_sdr_11.4360.ckpt',
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
'MelBand Roformer | Vocals by Kimberley Jensen': 'vocals_mel_band_roformer.ckpt',
|
|
|
|
|
|
|
39 |
|
40 |
# MelBand Roformer Kim
|
|
|
41 |
'MelBand Roformer Kim | Big Beta 4 FT by unwa': 'melband_roformer_big_beta4.ckpt',
|
42 |
'MelBand Roformer Kim | Big Beta 5e FT by unwa': 'melband_roformer_big_beta5e.ckpt',
|
43 |
-
'MelBand Roformer Kim | Big SYHFT V1 by SYH99999': 'MelBandRoformerBigSYHFTV1.ckpt',
|
44 |
-
'MelBand Roformer Kim | FT by unwa': 'mel_band_roformer_kim_ft_unwa.ckpt',
|
45 |
'MelBand Roformer Kim | Inst V1 by Unwa': 'melband_roformer_inst_v1.ckpt',
|
46 |
'MelBand Roformer Kim | Inst V1 (E) by Unwa': 'melband_roformer_inst_v1e.ckpt',
|
47 |
'MelBand Roformer Kim | Inst V2 by Unwa': 'melband_roformer_inst_v2.ckpt',
|
48 |
'MelBand Roformer Kim | InstVoc Duality V1 by Unwa': 'melband_roformer_instvoc_duality_v1.ckpt',
|
49 |
'MelBand Roformer Kim | InstVoc Duality V2 by Unwa': 'melband_roformer_instvox_duality_v2.ckpt',
|
|
|
50 |
'MelBand Roformer Kim | SYHFT V2 by SYH99999': 'MelBandRoformerSYHFTV2.ckpt',
|
51 |
'MelBand Roformer Kim | SYHFT V2.5 by SYH99999': 'MelBandRoformerSYHFTV2.5.ckpt',
|
52 |
'MelBand Roformer Kim | SYHFT V3 by SYH99999': 'MelBandRoformerSYHFTV3Epsilon.ckpt',
|
53 |
-
'MelBand Roformer Kim | SYHFT by SYH99999': '
|
54 |
}
|
55 |
#=========================#
|
56 |
# MDX23C Models #
|
57 |
#=========================#
|
58 |
MDX23C_MODELS = {
|
|
|
|
|
59 |
'MDX23C-InstVoc HQ': 'MDX23C-8KFFT-InstVoc_HQ.ckpt',
|
60 |
'VIP | MDX23C-InstVoc HQ 2': 'MDX23C-8KFFT-InstVoc_HQ_2.ckpt',
|
61 |
'VIP | MDX23C_D1581': 'MDX23C_D1581.ckpt',
|
62 |
-
'MDX23C De-Reverb by aufr33-jarredou': 'MDX23C-De-Reverb-aufr33-jarredou.ckpt',
|
63 |
-
'MDX23C DrumSep by aufr33-jarredou': 'MDX23C-DrumSep-aufr33-jarredou.ckpt',
|
64 |
}
|
65 |
#=========================#
|
66 |
# MDXN-NET Models #
|
67 |
#=========================#
|
68 |
MDXNET_MODELS = {
|
|
|
|
|
|
|
|
|
69 |
'UVR-MDX-NET Inst 1': 'UVR-MDX-NET-Inst_1.onnx',
|
70 |
'UVR-MDX-NET Inst 2': 'UVR-MDX-NET-Inst_2.onnx',
|
71 |
'UVR-MDX-NET Inst 3': 'UVR-MDX-NET-Inst_3.onnx',
|
@@ -74,25 +78,14 @@ MDXNET_MODELS = {
|
|
74 |
'UVR-MDX-NET Inst HQ 3': 'UVR-MDX-NET-Inst_HQ_3.onnx',
|
75 |
'UVR-MDX-NET Inst HQ 4': 'UVR-MDX-NET-Inst_HQ_4.onnx',
|
76 |
'UVR-MDX-NET Inst HQ 5': 'UVR-MDX-NET-Inst_HQ_5.onnx',
|
77 |
-
'
|
78 |
-
'VIP | UVR-MDX-NET_Inst_90_beta': 'UVR-MDX-NET_Inst_90_beta.onnx',
|
79 |
-
'VIP | UVR-MDX-NET_Inst_187_beta': 'UVR-MDX-NET_Inst_187_beta.onnx',
|
80 |
-
'VIP | UVR-MDX-NET-Inst_full_292': 'UVR-MDX-NET-Inst_full_292.onnx',
|
81 |
-
'VIP | UVR-MDX-NET_Main_340': 'UVR-MDX-NET_Main_340.onnx',
|
82 |
-
'VIP | UVR-MDX-NET_Main_390': 'UVR-MDX-NET_Main_390.onnx',
|
83 |
-
'VIP | UVR-MDX-NET_Main_406': 'UVR-MDX-NET_Main_406.onnx',
|
84 |
-
'VIP | UVR-MDX-NET_Main_427': 'UVR-MDX-NET_Main_427.onnx',
|
85 |
-
'VIP | UVR-MDX-NET_Main_438': 'UVR-MDX-NET_Main_438.onnx',
|
86 |
-
'UVR-MDX-NET Crowd HQ 1 By Aufr33': 'UVR-MDX-NET-Crowd_HQ_1.onnx',
|
87 |
-
'UVR-MDX-NET Voc FT': 'UVR-MDX-NET-Voc_FT.onnx',
|
88 |
-
'UVR-MDX-NET 1': 'UVR_MDXNET_1_9703.onnx',
|
89 |
-
'UVR-MDX-NET 2': 'UVR_MDXNET_2_9682.onnx',
|
90 |
-
'UVR-MDX-NET 3': 'UVR_MDXNET_3_9662.onnx',
|
91 |
-
'UVR_MDXNET_9482': 'UVR_MDXNET_9482.onnx',
|
92 |
'UVR-MDX-NET Karaoke': 'UVR_MDXNET_KARA.onnx',
|
93 |
'UVR-MDX-NET Karaoke 2': 'UVR_MDXNET_KARA_2.onnx',
|
94 |
'UVR-MDX-NET Main': 'UVR_MDXNET_Main.onnx',
|
95 |
-
'UVR-MDX-NET
|
|
|
|
|
|
|
96 |
'kuielab_a_bass': 'kuielab_a_bass.onnx',
|
97 |
'kuielab_a_drums': 'kuielab_a_drums.onnx',
|
98 |
'kuielab_a_other': 'kuielab_a_other.onnx',
|
@@ -101,10 +94,16 @@ MDXNET_MODELS = {
|
|
101 |
'kuielab_b_drums': 'kuielab_b_drums.onnx',
|
102 |
'kuielab_b_other': 'kuielab_b_other.onnx',
|
103 |
'kuielab_b_vocals': 'kuielab_b_vocals.onnx',
|
104 |
-
'Kim Inst': 'Kim_Inst.onnx',
|
105 |
-
'Kim Vocal 1': 'Kim_Vocal_1.onnx',
|
106 |
-
'Kim Vocal 2': 'Kim_Vocal_2.onnx',
|
107 |
'Reverb HQ By FoxJoy': 'Reverb_HQ_By_FoxJoy.onnx',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
#========================#
|
110 |
# VR-ARCH Models #
|
@@ -127,26 +126,26 @@ VR_ARCH_MODELS = {
|
|
127 |
'15_SP-UVR-MID-44100-1': '15_SP-UVR-MID-44100-1.pth',
|
128 |
'16_SP-UVR-MID-44100-2': '16_SP-UVR-MID-44100-2.pth',
|
129 |
'17_HP-Wind_Inst-UVR': '17_HP-Wind_Inst-UVR.pth',
|
130 |
-
'UVR-De-Echo-Aggressive by FoxJoy': 'UVR-De-Echo-Aggressive.pth',
|
131 |
-
'UVR-De-Echo-Normal by FoxJoy': 'UVR-De-Echo-Normal.pth',
|
132 |
-
'UVR-DeEcho-DeReverb by FoxJoy': 'UVR-DeEcho-DeReverb.pth',
|
133 |
-
'UVR-DeNoise-Lite by FoxJoy': 'UVR-DeNoise-Lite.pth',
|
134 |
-
'UVR-DeNoise by FoxJoy': 'UVR-DeNoise.pth',
|
135 |
'MGM_HIGHEND_v4': 'MGM_HIGHEND_v4.pth',
|
136 |
'MGM_LOWEND_A_v4': 'MGM_LOWEND_A_v4.pth',
|
137 |
'MGM_LOWEND_B_v4': 'MGM_LOWEND_B_v4.pth',
|
138 |
'MGM_MAIN_v4': 'MGM_MAIN_v4.pth',
|
139 |
'UVR-BVE-4B_SN-44100-1': 'UVR-BVE-4B_SN-44100-1.pth',
|
140 |
'UVR-De-Reverb by aufr33-jarredou': 'UVR-De-Reverb-aufr33-jarredou.pth',
|
|
|
|
|
|
|
|
|
|
|
141 |
}
|
142 |
#=======================#
|
143 |
# DEMUCS Models #
|
144 |
#=======================#
|
145 |
DEMUCS_MODELS = {
|
146 |
-
'hdemucs_mmi': 'hdemucs_mmi.yaml',
|
147 |
'htdemucs': 'htdemucs.yaml',
|
148 |
'htdemucs_6s': 'htdemucs_6s.yaml',
|
149 |
'htdemucs_ft': 'htdemucs_ft.yaml',
|
|
|
150 |
}
|
151 |
|
152 |
def print_message(input_file, model_name):
|
@@ -408,7 +407,7 @@ with gr.Blocks(
|
|
408 |
with gr.Tab("Roformer"):
|
409 |
with gr.Group():
|
410 |
with gr.Row():
|
411 |
-
roformer_model = gr.Dropdown(value="MelBand Roformer Kim |
|
412 |
with gr.Row():
|
413 |
roformer_seg_size = gr.Slider(minimum=32, maximum=4000, step=32, value=256, label="Segment Size", info="Larger consumes more resources, but may give better results.")
|
414 |
roformer_override_seg_size = gr.Checkbox(value=False, label="Override segment size", info="Override model default segment size instead of using the model default value.")
|
@@ -425,7 +424,7 @@ with gr.Blocks(
|
|
425 |
with gr.Tab("MDX23C"):
|
426 |
with gr.Group():
|
427 |
with gr.Row():
|
428 |
-
mdx23c_model = gr.Dropdown(label="Select the Model", choices=list(MDX23C_MODELS.keys()))
|
429 |
with gr.Row():
|
430 |
mdx23c_seg_size = gr.Slider(minimum=32, maximum=4000, step=32, value=256, label="Segment Size", info="Larger consumes more resources, but may give better results.")
|
431 |
mdx23c_override_seg_size = gr.Checkbox(value=False, label="Override segment size", info="Override model default segment size instead of using the model default value.")
|
@@ -442,7 +441,7 @@ with gr.Blocks(
|
|
442 |
with gr.Tab("MDX-NET"):
|
443 |
with gr.Group():
|
444 |
with gr.Row():
|
445 |
-
mdx_model = gr.Dropdown(label="Select the Model", choices=list(MDXNET_MODELS.keys()))
|
446 |
with gr.Row():
|
447 |
mdx_hop_length = gr.Slider(minimum=32, maximum=2048, step=32, value=1024, label="Hop Length", info="Usually called stride in neural networks; only change if you know what you're doing.")
|
448 |
mdx_seg_size = gr.Slider(minimum=32, maximum=4000, step=32, value=256, label="Segment Size", info="Larger consumes more resources, but may give better results.")
|
@@ -459,7 +458,7 @@ with gr.Blocks(
|
|
459 |
with gr.Tab("VR ARCH"):
|
460 |
with gr.Group():
|
461 |
with gr.Row():
|
462 |
-
vr_model = gr.Dropdown(label="Select the Model", choices=list(VR_ARCH_MODELS.keys()))
|
463 |
with gr.Row():
|
464 |
vr_window_size = gr.Slider(minimum=320, maximum=1024, step=32, value=512, label="Window Size", info="Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality.")
|
465 |
vr_aggression = gr.Slider(minimum=1, maximum=100, step=1, value=5, label="Agression", info="Intensity of primary stem extraction.")
|
@@ -478,7 +477,7 @@ with gr.Blocks(
|
|
478 |
with gr.Tab("Demucs"):
|
479 |
with gr.Group():
|
480 |
with gr.Row():
|
481 |
-
demucs_model = gr.Dropdown(label="Select the Model", choices=list(DEMUCS_MODELS.keys()))
|
482 |
with gr.Row():
|
483 |
demucs_seg_size = gr.Slider(minimum=1, maximum=100, step=1, value=40, label="Segment Size", info="Size of segments into which the audio is split. Higher = slower but better quality.")
|
484 |
demucs_shifts = gr.Slider(minimum=0, maximum=20, step=1, value=2, label="Shifts", info="Number of predictions with random shifts, higher = slower but better quality.")
|
|
|
16 |
#=========================#
|
17 |
ROFORMER_MODELS = {
|
18 |
# BS Roformer
|
|
|
|
|
19 |
'BS-Roformer-Viperx-1053': 'model_bs_roformer_ep_937_sdr_10.5309.ckpt',
|
20 |
'BS-Roformer-Viperx-1296': 'model_bs_roformer_ep_368_sdr_12.9628.ckpt',
|
21 |
'BS-Roformer-Viperx-1297': 'model_bs_roformer_ep_317_sdr_12.9755.ckpt',
|
22 |
+
'BS-Roformer-De-Reverb': 'deverb_bs_roformer_8_384dim_10depth.ckpt',
|
23 |
+
'BS Roformer | Chorus Male-Female by Sucial': 'model_chorus_bs_roformer_ep_267_sdr_24.1275.ckpt',
|
24 |
|
25 |
# MelBand Roformer
|
|
|
|
|
|
|
26 |
'Mel-Roformer-Crowd-Aufr33-Viperx': 'mel_band_roformer_crowd_aufr33_viperx_sdr_8.7144.ckpt',
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
'Mel-Roformer-Karaoke-Aufr33-Viperx': 'mel_band_roformer_karaoke_aufr33_viperx_sdr_10.1956.ckpt',
|
28 |
'Mel-Roformer-Viperx-1143': 'model_mel_band_roformer_ep_3005_sdr_11.4360.ckpt',
|
29 |
+
'MelBand Roformer | De-Reverb-Echo by Sucial': 'dereverb-echo_mel_band_roformer_sdr_10.0169.ckpt',
|
30 |
+
'MelBand Roformer | De-Reverb-Echo V2 by Sucial': 'dereverb-echo_mel_band_roformer_sdr_13.4843_v2.ckpt',
|
31 |
+
'MelBand Roformer | Aspiration Less Aggressive by Sucial': 'aspiration_mel_band_roformer_less_aggr_sdr_18.1201.ckpt',
|
32 |
+
'MelBand Roformer | Aspiration by Sucial': 'aspiration_mel_band_roformer_sdr_18.9845.ckpt',
|
33 |
+
'MelBand Roformer | De-Reverb Less Aggressive by anvuew': 'dereverb_mel_band_roformer_less_aggressive_anvuew_sdr_18.8050.ckpt',
|
34 |
+
'MelBand Roformer | De-Reverb by anvuew': 'dereverb_mel_band_roformer_anvuew_sdr_19.1729.ckpt',
|
35 |
'MelBand Roformer | Vocals by Kimberley Jensen': 'vocals_mel_band_roformer.ckpt',
|
36 |
+
'Mel-Roformer-Denoise-Aufr33-Aggr': 'denoise_mel_band_roformer_aufr33_aggr_sdr_27.9768.ckpt',
|
37 |
+
'Mel-Roformer-Denoise-Aufr33': 'denoise_mel_band_roformer_aufr33_sdr_27.9959.ckpt',
|
38 |
+
'MelBand Roformer | Bleed Suppressor V1 by unwa-97chris': 'mel_band_roformer_bleed_suppressor_v1.ckpt',
|
39 |
|
40 |
# MelBand Roformer Kim
|
41 |
+
'MelBand Roformer Kim | FT by unwa': 'mel_band_roformer_kim_ft_unwa.ckpt',
|
42 |
'MelBand Roformer Kim | Big Beta 4 FT by unwa': 'melband_roformer_big_beta4.ckpt',
|
43 |
'MelBand Roformer Kim | Big Beta 5e FT by unwa': 'melband_roformer_big_beta5e.ckpt',
|
|
|
|
|
44 |
'MelBand Roformer Kim | Inst V1 by Unwa': 'melband_roformer_inst_v1.ckpt',
|
45 |
'MelBand Roformer Kim | Inst V1 (E) by Unwa': 'melband_roformer_inst_v1e.ckpt',
|
46 |
'MelBand Roformer Kim | Inst V2 by Unwa': 'melband_roformer_inst_v2.ckpt',
|
47 |
'MelBand Roformer Kim | InstVoc Duality V1 by Unwa': 'melband_roformer_instvoc_duality_v1.ckpt',
|
48 |
'MelBand Roformer Kim | InstVoc Duality V2 by Unwa': 'melband_roformer_instvox_duality_v2.ckpt',
|
49 |
+
'MelBand Roformer Kim | SYHFT by SYH99999': 'MelBandRoformerSYHFT.ckpt',
|
50 |
'MelBand Roformer Kim | SYHFT V2 by SYH99999': 'MelBandRoformerSYHFTV2.ckpt',
|
51 |
'MelBand Roformer Kim | SYHFT V2.5 by SYH99999': 'MelBandRoformerSYHFTV2.5.ckpt',
|
52 |
'MelBand Roformer Kim | SYHFT V3 by SYH99999': 'MelBandRoformerSYHFTV3Epsilon.ckpt',
|
53 |
+
'MelBand Roformer Kim | Big SYHFT V1 by SYH99999': 'MelBandRoformerBigSYHFTV1.ckpt',
|
54 |
}
|
55 |
#=========================#
|
56 |
# MDX23C Models #
|
57 |
#=========================#
|
58 |
MDX23C_MODELS = {
|
59 |
+
'MDX23C DrumSep by aufr33-jarredou': 'MDX23C-DrumSep-aufr33-jarredou.ckpt',
|
60 |
+
'MDX23C De-Reverb by aufr33-jarredou': 'MDX23C-De-Reverb-aufr33-jarredou.ckpt',
|
61 |
'MDX23C-InstVoc HQ': 'MDX23C-8KFFT-InstVoc_HQ.ckpt',
|
62 |
'VIP | MDX23C-InstVoc HQ 2': 'MDX23C-8KFFT-InstVoc_HQ_2.ckpt',
|
63 |
'VIP | MDX23C_D1581': 'MDX23C_D1581.ckpt',
|
|
|
|
|
64 |
}
|
65 |
#=========================#
|
66 |
# MDXN-NET Models #
|
67 |
#=========================#
|
68 |
MDXNET_MODELS = {
|
69 |
+
'UVR-MDX-NET 1': 'UVR_MDXNET_1_9703.onnx',
|
70 |
+
'UVR-MDX-NET 2': 'UVR_MDXNET_2_9682.onnx',
|
71 |
+
'UVR-MDX-NET 3': 'UVR_MDXNET_3_9662.onnx',
|
72 |
+
'UVR_MDXNET_9482': 'UVR_MDXNET_9482.onnx',
|
73 |
'UVR-MDX-NET Inst 1': 'UVR-MDX-NET-Inst_1.onnx',
|
74 |
'UVR-MDX-NET Inst 2': 'UVR-MDX-NET-Inst_2.onnx',
|
75 |
'UVR-MDX-NET Inst 3': 'UVR-MDX-NET-Inst_3.onnx',
|
|
|
78 |
'UVR-MDX-NET Inst HQ 3': 'UVR-MDX-NET-Inst_HQ_3.onnx',
|
79 |
'UVR-MDX-NET Inst HQ 4': 'UVR-MDX-NET-Inst_HQ_4.onnx',
|
80 |
'UVR-MDX-NET Inst HQ 5': 'UVR-MDX-NET-Inst_HQ_5.onnx',
|
81 |
+
'UVR-MDX-NET Inst Main': 'UVR-MDX-NET-Inst_Main.onnx',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
'UVR-MDX-NET Karaoke': 'UVR_MDXNET_KARA.onnx',
|
83 |
'UVR-MDX-NET Karaoke 2': 'UVR_MDXNET_KARA_2.onnx',
|
84 |
'UVR-MDX-NET Main': 'UVR_MDXNET_Main.onnx',
|
85 |
+
'UVR-MDX-NET Voc FT': 'UVR-MDX-NET-Voc_FT.onnx',
|
86 |
+
'Kim Inst': 'Kim_Inst.onnx',
|
87 |
+
'Kim Vocal 1': 'Kim_Vocal_1.onnx',
|
88 |
+
'Kim Vocal 2': 'Kim_Vocal_2.onnx',
|
89 |
'kuielab_a_bass': 'kuielab_a_bass.onnx',
|
90 |
'kuielab_a_drums': 'kuielab_a_drums.onnx',
|
91 |
'kuielab_a_other': 'kuielab_a_other.onnx',
|
|
|
94 |
'kuielab_b_drums': 'kuielab_b_drums.onnx',
|
95 |
'kuielab_b_other': 'kuielab_b_other.onnx',
|
96 |
'kuielab_b_vocals': 'kuielab_b_vocals.onnx',
|
|
|
|
|
|
|
97 |
'Reverb HQ By FoxJoy': 'Reverb_HQ_By_FoxJoy.onnx',
|
98 |
+
'VIP | UVR-MDX-NET_Inst_82_beta': 'UVR-MDX-NET_Inst_82_beta.onnx',
|
99 |
+
'VIP | UVR-MDX-NET_Inst_90_beta': 'UVR-MDX-NET_Inst_90_beta.onnx',
|
100 |
+
'VIP | UVR-MDX-NET_Inst_187_beta': 'UVR-MDX-NET_Inst_187_beta.onnx',
|
101 |
+
'VIP | UVR-MDX-NET-Inst_full_292': 'UVR-MDX-NET-Inst_full_292.onnx',
|
102 |
+
'VIP | UVR-MDX-NET_Main_340': 'UVR-MDX-NET_Main_340.onnx',
|
103 |
+
'VIP | UVR-MDX-NET_Main_390': 'UVR-MDX-NET_Main_390.onnx',
|
104 |
+
'VIP | UVR-MDX-NET_Main_406': 'UVR-MDX-NET_Main_406.onnx',
|
105 |
+
'VIP | UVR-MDX-NET_Main_427': 'UVR-MDX-NET_Main_427.onnx',
|
106 |
+
'VIP | UVR-MDX-NET_Main_438': 'UVR-MDX-NET_Main_438.onnx',
|
107 |
}
|
108 |
#========================#
|
109 |
# VR-ARCH Models #
|
|
|
126 |
'15_SP-UVR-MID-44100-1': '15_SP-UVR-MID-44100-1.pth',
|
127 |
'16_SP-UVR-MID-44100-2': '16_SP-UVR-MID-44100-2.pth',
|
128 |
'17_HP-Wind_Inst-UVR': '17_HP-Wind_Inst-UVR.pth',
|
|
|
|
|
|
|
|
|
|
|
129 |
'MGM_HIGHEND_v4': 'MGM_HIGHEND_v4.pth',
|
130 |
'MGM_LOWEND_A_v4': 'MGM_LOWEND_A_v4.pth',
|
131 |
'MGM_LOWEND_B_v4': 'MGM_LOWEND_B_v4.pth',
|
132 |
'MGM_MAIN_v4': 'MGM_MAIN_v4.pth',
|
133 |
'UVR-BVE-4B_SN-44100-1': 'UVR-BVE-4B_SN-44100-1.pth',
|
134 |
'UVR-De-Reverb by aufr33-jarredou': 'UVR-De-Reverb-aufr33-jarredou.pth',
|
135 |
+
'UVR-De-Echo-Aggressive by FoxJoy': 'UVR-De-Echo-Aggressive.pth',
|
136 |
+
'UVR-De-Echo-Normal by FoxJoy': 'UVR-De-Echo-Normal.pth',
|
137 |
+
'UVR-DeEcho-DeReverb by FoxJoy': 'UVR-DeEcho-DeReverb.pth',
|
138 |
+
'UVR-DeNoise-Lite by FoxJoy': 'UVR-DeNoise-Lite.pth',
|
139 |
+
'UVR-DeNoise by FoxJoy': 'UVR-DeNoise.pth',
|
140 |
}
|
141 |
#=======================#
|
142 |
# DEMUCS Models #
|
143 |
#=======================#
|
144 |
DEMUCS_MODELS = {
|
|
|
145 |
'htdemucs': 'htdemucs.yaml',
|
146 |
'htdemucs_6s': 'htdemucs_6s.yaml',
|
147 |
'htdemucs_ft': 'htdemucs_ft.yaml',
|
148 |
+
'hdemucs_mmi': 'hdemucs_mmi.yaml',
|
149 |
}
|
150 |
|
151 |
def print_message(input_file, model_name):
|
|
|
407 |
with gr.Tab("Roformer"):
|
408 |
with gr.Group():
|
409 |
with gr.Row():
|
410 |
+
roformer_model = gr.Dropdown(value="MelBand Roformer Kim | Big Beta 5e FT by unwa", label="Select the Model", choices=list(ROFORMER_MODELS.keys()))
|
411 |
with gr.Row():
|
412 |
roformer_seg_size = gr.Slider(minimum=32, maximum=4000, step=32, value=256, label="Segment Size", info="Larger consumes more resources, but may give better results.")
|
413 |
roformer_override_seg_size = gr.Checkbox(value=False, label="Override segment size", info="Override model default segment size instead of using the model default value.")
|
|
|
424 |
with gr.Tab("MDX23C"):
|
425 |
with gr.Group():
|
426 |
with gr.Row():
|
427 |
+
mdx23c_model = gr.Dropdown(value="MDX23C-InstVoc HQ", label="Select the Model", choices=list(MDX23C_MODELS.keys()))
|
428 |
with gr.Row():
|
429 |
mdx23c_seg_size = gr.Slider(minimum=32, maximum=4000, step=32, value=256, label="Segment Size", info="Larger consumes more resources, but may give better results.")
|
430 |
mdx23c_override_seg_size = gr.Checkbox(value=False, label="Override segment size", info="Override model default segment size instead of using the model default value.")
|
|
|
441 |
with gr.Tab("MDX-NET"):
|
442 |
with gr.Group():
|
443 |
with gr.Row():
|
444 |
+
mdx_model = gr.Dropdown(value="UVR-MDX-NET Inst HQ 5", label="Select the Model", choices=list(MDXNET_MODELS.keys()))
|
445 |
with gr.Row():
|
446 |
mdx_hop_length = gr.Slider(minimum=32, maximum=2048, step=32, value=1024, label="Hop Length", info="Usually called stride in neural networks; only change if you know what you're doing.")
|
447 |
mdx_seg_size = gr.Slider(minimum=32, maximum=4000, step=32, value=256, label="Segment Size", info="Larger consumes more resources, but may give better results.")
|
|
|
458 |
with gr.Tab("VR ARCH"):
|
459 |
with gr.Group():
|
460 |
with gr.Row():
|
461 |
+
vr_model = gr.Dropdown(value="1_HP-UVR", label="Select the Model", choices=list(VR_ARCH_MODELS.keys()))
|
462 |
with gr.Row():
|
463 |
vr_window_size = gr.Slider(minimum=320, maximum=1024, step=32, value=512, label="Window Size", info="Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality.")
|
464 |
vr_aggression = gr.Slider(minimum=1, maximum=100, step=1, value=5, label="Agression", info="Intensity of primary stem extraction.")
|
|
|
477 |
with gr.Tab("Demucs"):
|
478 |
with gr.Group():
|
479 |
with gr.Row():
|
480 |
+
demucs_model = gr.Dropdown(value="htdemucs_6s", label="Select the Model", choices=list(DEMUCS_MODELS.keys()))
|
481 |
with gr.Row():
|
482 |
demucs_seg_size = gr.Slider(minimum=1, maximum=100, step=1, value=40, label="Segment Size", info="Size of segments into which the audio is split. Higher = slower but better quality.")
|
483 |
demucs_shifts = gr.Slider(minimum=0, maximum=20, step=1, value=2, label="Shifts", info="Number of predictions with random shifts, higher = slower but better quality.")
|