Politrees commited on
Commit
0494538
·
verified ·
1 Parent(s): 0f691dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -39
app.py CHANGED
@@ -11,65 +11,64 @@ use_autocast = device == "cuda"
11
 
12
  # Model lists
13
  ROFORMER_MODELS = {
14
- 'BS-Roformer-Viperx-1297.ckpt': 'model_bs_roformer_ep_317_sdr_12.9755.ckpt',
15
- 'BS-Roformer-Viperx-1296.ckpt': 'model_bs_roformer_ep_368_sdr_12.9628.ckpt',
16
- 'BS-Roformer-Viperx-1053.ckpt': 'model_bs_roformer_ep_937_sdr_10.5309.ckpt',
17
- 'BS-Roformer-De-Reverb.ckpt': 'deverb_bs_roformer_8_384dim_10depth.ckpt',
18
- 'Mel-Roformer-Viperx-1143.ckpt': 'model_mel_band_roformer_ep_3005_sdr_11.4360.ckpt',
19
- 'Mel-Roformer-Crowd-Aufr33-Viperx.ckpt': 'mel_band_roformer_crowd_aufr33_viperx_sdr_8.7144.ckpt',
20
- 'Mel-Roformer-Karaoke-Aufr33-Viperx.ckpt': 'mel_band_roformer_karaoke_aufr33_viperx_sdr_10.1956.ckpt',
21
  'Mel-Roformer-Denoise-Aufr33': 'denoise_mel_band_roformer_aufr33_sdr_27.9959.ckpt',
22
  'Mel-Roformer-Denoise-Aufr33-Aggr': 'denoise_mel_band_roformer_aufr33_aggr_sdr_27.9768.ckpt',
 
 
23
  'MelBand Roformer Kim | Inst V1 by Unwa': 'melband_roformer_inst_v1.ckpt',
24
- # 'MelBand Roformer Kim | Inst V1 (E) by Unwa':'inst_v1e.ckpt',
25
  'MelBand Roformer Kim | Inst V2 by Unwa': 'melband_roformer_inst_v2.ckpt',
26
  'MelBand Roformer Kim | InstVoc Duality V1 by Unwa': 'melband_roformer_instvoc_duality_v1.ckpt',
27
  'MelBand Roformer Kim | InstVoc Duality V2 by Unwa': 'melband_roformer_instvox_duality_v2.ckpt',
28
  }
29
  MDX23C_MODELS = [
30
- 'MDX23C_D1581.ckpt',
31
  'MDX23C-8KFFT-InstVoc_HQ.ckpt',
32
  'MDX23C-8KFFT-InstVoc_HQ_2.ckpt',
 
33
  ]
34
  MDXNET_MODELS = [
 
 
 
 
 
 
 
 
 
35
  'UVR-MDX-NET-Inst_full_292.onnx',
36
- 'UVR-MDX-NET_Inst_187_beta.onnx',
37
  'UVR-MDX-NET_Inst_82_beta.onnx',
38
  'UVR-MDX-NET_Inst_90_beta.onnx',
 
39
  'UVR-MDX-NET_Main_340.onnx',
40
  'UVR-MDX-NET_Main_390.onnx',
41
  'UVR-MDX-NET_Main_406.onnx',
42
  'UVR-MDX-NET_Main_427.onnx',
43
  'UVR-MDX-NET_Main_438.onnx',
44
- 'UVR-MDX-NET-Inst_HQ_1.onnx',
45
- 'UVR-MDX-NET-Inst_HQ_2.onnx',
46
- 'UVR-MDX-NET-Inst_HQ_3.onnx',
47
- 'UVR-MDX-NET-Inst_HQ_4.onnx',
48
- 'UVR_MDXNET_Main.onnx',
49
- 'UVR-MDX-NET-Inst_Main.onnx',
50
  'UVR_MDXNET_1_9703.onnx',
51
  'UVR_MDXNET_2_9682.onnx',
52
  'UVR_MDXNET_3_9662.onnx',
53
- 'UVR-MDX-NET-Inst_1.onnx',
54
- 'UVR-MDX-NET-Inst_2.onnx',
55
- 'UVR-MDX-NET-Inst_3.onnx',
56
  'UVR_MDXNET_KARA.onnx',
57
  'UVR_MDXNET_KARA_2.onnx',
58
- 'UVR_MDXNET_9482.onnx',
59
- 'UVR-MDX-NET-Voc_FT.onnx',
60
- 'Kim_Vocal_1.onnx',
61
- 'Kim_Vocal_2.onnx',
62
- 'Kim_Inst.onnx',
63
- 'Reverb_HQ_By_FoxJoy.onnx',
64
- 'UVR-MDX-NET_Crowd_HQ_1.onnx',
65
- 'kuielab_a_vocals.onnx',
66
- 'kuielab_a_other.onnx',
67
  'kuielab_a_bass.onnx',
68
  'kuielab_a_drums.onnx',
69
- 'kuielab_b_vocals.onnx',
70
- 'kuielab_b_other.onnx',
71
  'kuielab_b_bass.onnx',
72
  'kuielab_b_drums.onnx',
 
 
 
 
 
 
73
  ]
74
  VR_ARCH_MODELS = [
75
  '1_HP-UVR.pth',
@@ -89,22 +88,22 @@ VR_ARCH_MODELS = [
89
  '15_SP-UVR-MID-44100-1.pth',
90
  '16_SP-UVR-MID-44100-2.pth',
91
  '17_HP-Wind_Inst-UVR.pth',
92
- 'UVR-DeEcho-DeReverb.pth',
93
- 'UVR-De-Echo-Normal.pth',
94
- 'UVR-De-Echo-Aggressive.pth',
95
- 'UVR-DeNoise.pth',
96
- 'UVR-DeNoise-Lite.pth',
97
- 'UVR-BVE-4B_SN-44100-1.pth',
98
  'MGM_HIGHEND_v4.pth',
99
  'MGM_LOWEND_A_v4.pth',
100
  'MGM_LOWEND_B_v4.pth',
101
  'MGM_MAIN_v4.pth',
 
 
 
 
 
 
102
  ]
103
  DEMUCS_MODELS = [
104
- 'htdemucs_ft.yaml',
105
- 'htdemucs_6s.yaml',
106
- 'htdemucs.yaml',
107
  'hdemucs_mmi.yaml',
 
 
 
108
  ]
109
 
110
  def print_message(input_file, model_name):
 
11
 
12
  # Model lists
13
  ROFORMER_MODELS = {
14
+ 'BS-Roformer-De-Reverb': 'deverb_bs_roformer_8_384dim_10depth.ckpt',
15
+ 'BS-Roformer-Viperx-1053': 'model_bs_roformer_ep_937_sdr_10.5309.ckpt',
16
+ 'BS-Roformer-Viperx-1296': 'model_bs_roformer_ep_368_sdr_12.9628.ckpt',
17
+ 'BS-Roformer-Viperx-1297': 'model_bs_roformer_ep_317_sdr_12.9755.ckpt',
18
+ 'Mel-Roformer-Crowd-Aufr33-Viperx': 'mel_band_roformer_crowd_aufr33_viperx_sdr_8.7144.ckpt',
 
 
19
  'Mel-Roformer-Denoise-Aufr33': 'denoise_mel_band_roformer_aufr33_sdr_27.9959.ckpt',
20
  'Mel-Roformer-Denoise-Aufr33-Aggr': 'denoise_mel_band_roformer_aufr33_aggr_sdr_27.9768.ckpt',
21
+ 'Mel-Roformer-Karaoke-Aufr33-Viperx': 'mel_band_roformer_karaoke_aufr33_viperx_sdr_10.1956.ckpt',
22
+ 'Mel-Roformer-Viperx-1143': 'model_mel_band_roformer_ep_3005_sdr_11.4360.ckpt',
23
  'MelBand Roformer Kim | Inst V1 by Unwa': 'melband_roformer_inst_v1.ckpt',
 
24
  'MelBand Roformer Kim | Inst V2 by Unwa': 'melband_roformer_inst_v2.ckpt',
25
  'MelBand Roformer Kim | InstVoc Duality V1 by Unwa': 'melband_roformer_instvoc_duality_v1.ckpt',
26
  'MelBand Roformer Kim | InstVoc Duality V2 by Unwa': 'melband_roformer_instvox_duality_v2.ckpt',
27
  }
28
  MDX23C_MODELS = [
 
29
  'MDX23C-8KFFT-InstVoc_HQ.ckpt',
30
  'MDX23C-8KFFT-InstVoc_HQ_2.ckpt',
31
+ 'MDX23C_D1581.ckpt',
32
  ]
33
  MDXNET_MODELS = [
34
+ 'UVR-MDX-NET-Crowd_HQ_1.onnx',
35
+ 'UVR-MDX-NET-Inst_1.onnx',
36
+ 'UVR-MDX-NET-Inst_2.onnx',
37
+ 'UVR-MDX-NET-Inst_3.onnx',
38
+ 'UVR-MDX-NET-Inst_HQ_1.onnx',
39
+ 'UVR-MDX-NET-Inst_HQ_2.onnx',
40
+ 'UVR-MDX-NET-Inst_HQ_3.onnx',
41
+ 'UVR-MDX-NET-Inst_HQ_4.onnx',
42
+ 'UVR-MDX-NET-Inst_HQ_5.onnx',
43
  'UVR-MDX-NET-Inst_full_292.onnx',
44
+ 'UVR-MDX-NET-Voc_FT.onnx',
45
  'UVR-MDX-NET_Inst_82_beta.onnx',
46
  'UVR-MDX-NET_Inst_90_beta.onnx',
47
+ 'UVR-MDX-NET_Inst_187_beta.onnx',
48
  'UVR-MDX-NET_Main_340.onnx',
49
  'UVR-MDX-NET_Main_390.onnx',
50
  'UVR-MDX-NET_Main_406.onnx',
51
  'UVR-MDX-NET_Main_427.onnx',
52
  'UVR-MDX-NET_Main_438.onnx',
 
 
 
 
 
 
53
  'UVR_MDXNET_1_9703.onnx',
54
  'UVR_MDXNET_2_9682.onnx',
55
  'UVR_MDXNET_3_9662.onnx',
56
+ 'UVR_MDXNET_9482.onnx',
 
 
57
  'UVR_MDXNET_KARA.onnx',
58
  'UVR_MDXNET_KARA_2.onnx',
59
+ 'UVR_MDXNET_Main.onnx',
 
 
 
 
 
 
 
 
60
  'kuielab_a_bass.onnx',
61
  'kuielab_a_drums.onnx',
62
+ 'kuielab_a_other.onnx',
63
+ 'kuielab_a_vocals.onnx',
64
  'kuielab_b_bass.onnx',
65
  'kuielab_b_drums.onnx',
66
+ 'kuielab_b_other.onnx',
67
+ 'kuielab_b_vocals.onnx',
68
+ 'Kim_Inst.onnx',
69
+ 'Kim_Vocal_1.onnx',
70
+ 'Kim_Vocal_2.onnx',
71
+ 'Reverb_HQ_By_FoxJoy.onnx',
72
  ]
73
  VR_ARCH_MODELS = [
74
  '1_HP-UVR.pth',
 
88
  '15_SP-UVR-MID-44100-1.pth',
89
  '16_SP-UVR-MID-44100-2.pth',
90
  '17_HP-Wind_Inst-UVR.pth',
 
 
 
 
 
 
91
  'MGM_HIGHEND_v4.pth',
92
  'MGM_LOWEND_A_v4.pth',
93
  'MGM_LOWEND_B_v4.pth',
94
  'MGM_MAIN_v4.pth',
95
+ 'UVR-BVE-4B_SN-44100-1.pth',
96
+ 'UVR-DeEcho-DeReverb.pth',
97
+ 'UVR-De-Echo-Aggressive.pth',
98
+ 'UVR-De-Echo-Normal.pth',
99
+ 'UVR-DeNoise-Lite.pth',
100
+ 'UVR-DeNoise.pth',
101
  ]
102
  DEMUCS_MODELS = [
 
 
 
103
  'hdemucs_mmi.yaml',
104
+ 'htdemucs.yaml',
105
+ 'htdemucs_6s.yaml',
106
+ 'htdemucs_ft.yaml',
107
  ]
108
 
109
  def print_message(input_file, model_name):