Next
commited on
Commit
•
3abb169
1
Parent(s):
dfdab28
Update app.py
Browse files
app.py
CHANGED
@@ -3,122 +3,8 @@ import re
|
|
3 |
import random
|
4 |
from scipy.io.wavfile import write
|
5 |
import gradio as gr
|
6 |
-
|
7 |
-
|
8 |
-
'BS-Roformer-Viperx-1297.ckpt': 'model_bs_roformer_ep_317_sdr_12.9755.ckpt',
|
9 |
-
'BS-Roformer-Viperx-1296.ckpt': 'model_bs_roformer_ep_368_sdr_12.9628.ckpt',
|
10 |
-
'BS-Roformer-Viperx-1053.ckpt': 'model_bs_roformer_ep_937_sdr_10.5309.ckpt',
|
11 |
-
'Mel-Roformer-Viperx-1143.ckpt': 'model_mel_band_roformer_ep_3005_sdr_11.4360.ckpt'
|
12 |
-
}
|
13 |
-
|
14 |
-
mdx23c_models = [
|
15 |
-
'MDX23C_D1581.ckpt',
|
16 |
-
'MDX23C-8KFFT-InstVoc_HQ.ckpt',
|
17 |
-
'MDX23C-8KFFT-InstVoc_HQ_2.ckpt',
|
18 |
-
]
|
19 |
-
|
20 |
-
mdxnet_models = [
|
21 |
-
'UVR-MDX-NET-Inst_full_292.onnx',
|
22 |
-
'UVR-MDX-NET_Inst_187_beta.onnx',
|
23 |
-
'UVR-MDX-NET_Inst_82_beta.onnx',
|
24 |
-
'UVR-MDX-NET_Inst_90_beta.onnx',
|
25 |
-
'UVR-MDX-NET_Main_340.onnx',
|
26 |
-
'UVR-MDX-NET_Main_390.onnx',
|
27 |
-
'UVR-MDX-NET_Main_406.onnx',
|
28 |
-
'UVR-MDX-NET_Main_427.onnx',
|
29 |
-
'UVR-MDX-NET_Main_438.onnx',
|
30 |
-
'UVR-MDX-NET-Inst_HQ_1.onnx',
|
31 |
-
'UVR-MDX-NET-Inst_HQ_2.onnx',
|
32 |
-
'UVR-MDX-NET-Inst_HQ_3.onnx',
|
33 |
-
'UVR-MDX-NET-Inst_HQ_4.onnx',
|
34 |
-
'UVR_MDXNET_Main.onnx',
|
35 |
-
'UVR-MDX-NET-Inst_Main.onnx',
|
36 |
-
'UVR_MDXNET_1_9703.onnx',
|
37 |
-
'UVR_MDXNET_2_9682.onnx',
|
38 |
-
'UVR_MDXNET_3_9662.onnx',
|
39 |
-
'UVR-MDX-NET-Inst_1.onnx',
|
40 |
-
'UVR-MDX-NET-Inst_2.onnx',
|
41 |
-
'UVR-MDX-NET-Inst_3.onnx',
|
42 |
-
'UVR_MDXNET_KARA.onnx',
|
43 |
-
'UVR_MDXNET_KARA_2.onnx',
|
44 |
-
'UVR_MDXNET_9482.onnx',
|
45 |
-
'UVR-MDX-NET-Voc_FT.onnx',
|
46 |
-
'Kim_Vocal_1.onnx',
|
47 |
-
'Kim_Vocal_2.onnx',
|
48 |
-
'Kim_Inst.onnx',
|
49 |
-
'Reverb_HQ_By_FoxJoy.onnx',
|
50 |
-
'UVR-MDX-NET_Crowd_HQ_1.onnx',
|
51 |
-
'kuielab_a_vocals.onnx',
|
52 |
-
'kuielab_a_other.onnx',
|
53 |
-
'kuielab_a_bass.onnx',
|
54 |
-
'kuielab_a_drums.onnx',
|
55 |
-
'kuielab_b_vocals.onnx',
|
56 |
-
'kuielab_b_other.onnx',
|
57 |
-
'kuielab_b_bass.onnx',
|
58 |
-
'kuielab_b_drums.onnx',
|
59 |
-
]
|
60 |
-
|
61 |
-
vrarch_models = [
|
62 |
-
'1_HP-UVR.pth',
|
63 |
-
'2_HP-UVR.pth',
|
64 |
-
'3_HP-Vocal-UVR.pth',
|
65 |
-
'4_HP-Vocal-UVR.pth',
|
66 |
-
'5_HP-Karaoke-UVR.pth',
|
67 |
-
'6_HP-Karaoke-UVR.pth',
|
68 |
-
'7_HP2-UVR.pth',
|
69 |
-
'8_HP2-UVR.pth',
|
70 |
-
'9_HP2-UVR.pth',
|
71 |
-
'10_SP-UVR-2B-32000-1.pth',
|
72 |
-
'11_SP-UVR-2B-32000-2.pth',
|
73 |
-
'12_SP-UVR-3B-44100.pth',
|
74 |
-
'13_SP-UVR-4B-44100-1.pth',
|
75 |
-
'14_SP-UVR-4B-44100-2.pth',
|
76 |
-
'15_SP-UVR-MID-44100-1.pth',
|
77 |
-
'16_SP-UVR-MID-44100-2.pth',
|
78 |
-
'17_HP-Wind_Inst-UVR.pth',
|
79 |
-
'UVR-De-Echo-Aggressive.pth',
|
80 |
-
'UVR-De-Echo-Normal.pth',
|
81 |
-
'UVR-DeEcho-DeReverb.pth',
|
82 |
-
'UVR-DeNoise-Lite.pth',
|
83 |
-
'UVR-DeNoise.pth',
|
84 |
-
'UVR-BVE-4B_SN-44100-1.pth',
|
85 |
-
'MGM_HIGHEND_v4.pth',
|
86 |
-
'MGM_LOWEND_A_v4.pth',
|
87 |
-
'MGM_LOWEND_B_v4.pth',
|
88 |
-
'MGM_MAIN_v4.pth',
|
89 |
-
]
|
90 |
-
|
91 |
-
demucs_models = [
|
92 |
-
'htdemucs_ft.yaml',
|
93 |
-
'htdemucs.yaml',
|
94 |
-
'hdemucs_mmi.yaml',
|
95 |
-
]
|
96 |
-
|
97 |
-
output_format = [
|
98 |
-
'wav',
|
99 |
-
'flac',
|
100 |
-
'mp3',
|
101 |
-
]
|
102 |
-
|
103 |
-
mdxnet_overlap_values = [
|
104 |
-
'0.25',
|
105 |
-
'0.5',
|
106 |
-
'0.75',
|
107 |
-
'0.99',
|
108 |
-
]
|
109 |
-
|
110 |
-
vrarch_window_size_values = [
|
111 |
-
'320',
|
112 |
-
'512',
|
113 |
-
'1024',
|
114 |
-
]
|
115 |
-
|
116 |
-
demucs_overlap_values = [
|
117 |
-
'0.25',
|
118 |
-
'0.50',
|
119 |
-
'0.75',
|
120 |
-
'0.99',
|
121 |
-
]
|
122 |
|
123 |
def roformer_separator(roformer_audio, roformer_model, roformer_output_format, roformer_overlap):
|
124 |
files_list = []
|
@@ -234,7 +120,7 @@ def demucs_separator(demucs_audio, demucs_model, demucs_output_format, demucs_sh
|
|
234 |
|
235 |
return stem1_file, stem2_file, stem3_file, stem4_file
|
236 |
|
237 |
-
with gr.Blocks(theme=
|
238 |
gr.Markdown("<h1> 🎵 UVR5 UI 🎵 </h1>")
|
239 |
gr.Markdown("If you liked this HF Space you can give me a ❤️")
|
240 |
gr.Markdown("Try UVR5 UI with GPU using Colab [here](https://colab.research.google.com/github/Eddycrack864/UVR5-UI/blob/main/UVR_UI.ipynb)")
|
|
|
3 |
import random
|
4 |
from scipy.io.wavfile import write
|
5 |
import gradio as gr
|
6 |
+
from Applio import *
|
7 |
+
from uvrmodel import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
def roformer_separator(roformer_audio, roformer_model, roformer_output_format, roformer_overlap):
|
10 |
files_list = []
|
|
|
120 |
|
121 |
return stem1_file, stem2_file, stem3_file, stem4_file
|
122 |
|
123 |
+
with gr.Blocks(theme=theme, title="🎵 UVR5 UI 🎵") as app:
|
124 |
gr.Markdown("<h1> 🎵 UVR5 UI 🎵 </h1>")
|
125 |
gr.Markdown("If you liked this HF Space you can give me a ❤️")
|
126 |
gr.Markdown("Try UVR5 UI with GPU using Colab [here](https://colab.research.google.com/github/Eddycrack864/UVR5-UI/blob/main/UVR_UI.ipynb)")
|