Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
feat: added fontaine
Browse files- README.md +1 -1
- app.py +5 -4
- requirements.txt +1 -1
- weights/Fontaine/charlotte-jp/added_IVF1318_Flat_nprobe_1_charlotte-jp_v2.index +3 -0
- weights/Fontaine/charlotte-jp/charlotte-jp.pth +3 -0
- weights/Fontaine/charlotte-jp/cover.png +3 -0
- weights/Fontaine/furina-jp/added_IVF1358_Flat_nprobe_1_furina-jp_v2.index +3 -0
- weights/Fontaine/furina-jp/cover.png +3 -0
- weights/Fontaine/furina-jp/furina-jp.pth +3 -0
- weights/Fontaine/model_info.json +18 -0
- weights/folder_info.json +6 -0
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🎤
|
|
4 |
colorFrom: red
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
app_file: app.py
|
9 |
pinned: true
|
10 |
license: mit
|
|
|
4 |
colorFrom: red
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.40.1
|
8 |
app_file: app.py
|
9 |
pinned: true
|
10 |
license: mit
|
app.py
CHANGED
@@ -186,8 +186,9 @@ def load_model():
|
|
186 |
def download_audio(url, audio_provider):
|
187 |
logs = []
|
188 |
if url == "":
|
189 |
-
|
190 |
-
|
|
|
191 |
if not os.path.exists("dl_audio"):
|
192 |
os.mkdir("dl_audio")
|
193 |
if audio_provider == "Youtube":
|
@@ -211,12 +212,12 @@ def download_audio(url, audio_provider):
|
|
211 |
def cut_vocal_and_inst(split_model):
|
212 |
logs = []
|
213 |
logs.append("Starting the audio splitting process...")
|
214 |
-
yield "\n".join(logs), None, None, None
|
215 |
command = f"demucs --two-stems=vocals -n {split_model} dl_audio/audio.wav -o output"
|
216 |
result = subprocess.Popen(command.split(), stdout=subprocess.PIPE, text=True)
|
217 |
for line in result.stdout:
|
218 |
logs.append(line)
|
219 |
-
yield "\n".join(logs), None, None, None
|
220 |
print(result.stdout)
|
221 |
vocal = f"output/{split_model}/audio/vocals.wav"
|
222 |
inst = f"output/{split_model}/audio/no_vocals.wav"
|
|
|
186 |
def download_audio(url, audio_provider):
|
187 |
logs = []
|
188 |
if url == "":
|
189 |
+
logs.append("URL required!")
|
190 |
+
yield None, "\n".join(logs)
|
191 |
+
return None, "\n".join(logs)
|
192 |
if not os.path.exists("dl_audio"):
|
193 |
os.mkdir("dl_audio")
|
194 |
if audio_provider == "Youtube":
|
|
|
212 |
def cut_vocal_and_inst(split_model):
|
213 |
logs = []
|
214 |
logs.append("Starting the audio splitting process...")
|
215 |
+
yield "\n".join(logs), None, None, None
|
216 |
command = f"demucs --two-stems=vocals -n {split_model} dl_audio/audio.wav -o output"
|
217 |
result = subprocess.Popen(command.split(), stdout=subprocess.PIPE, text=True)
|
218 |
for line in result.stdout:
|
219 |
logs.append(line)
|
220 |
+
yield "\n".join(logs), None, None, None
|
221 |
print(result.stdout)
|
222 |
vocal = f"output/{split_model}/audio/vocals.wav"
|
223 |
inst = f"output/{split_model}/audio/no_vocals.wav"
|
requirements.txt
CHANGED
@@ -7,7 +7,7 @@ scipy==1.9.3
|
|
7 |
librosa==0.9.1
|
8 |
fairseq==0.12.2
|
9 |
faiss-cpu==1.7.3
|
10 |
-
gradio==3.
|
11 |
pyworld==0.3.2
|
12 |
soundfile>=0.12.1
|
13 |
praat-parselmouth>=0.4.2
|
|
|
7 |
librosa==0.9.1
|
8 |
fairseq==0.12.2
|
9 |
faiss-cpu==1.7.3
|
10 |
+
gradio==3.40.1
|
11 |
pyworld==0.3.2
|
12 |
soundfile>=0.12.1
|
13 |
praat-parselmouth>=0.4.2
|
weights/Fontaine/charlotte-jp/added_IVF1318_Flat_nprobe_1_charlotte-jp_v2.index
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d18fb9a5a38bba0440a740bc3b9c997dffc0d4d0d97a24cd76293ef9d48ee855
|
3 |
+
size 162414699
|
weights/Fontaine/charlotte-jp/charlotte-jp.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:53fa283c1066d6cb0672ac753868941c3a0f1095412f0b65daf84c7bb7c90087
|
3 |
+
size 57590442
|
weights/Fontaine/charlotte-jp/cover.png
ADDED
Git LFS Details
|
weights/Fontaine/furina-jp/added_IVF1358_Flat_nprobe_1_furina-jp_v2.index
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af92cb2386b8b21c8d2bc323760f19bec8e16b26ef7aba5973b503241721dd23
|
3 |
+
size 167345779
|
weights/Fontaine/furina-jp/cover.png
ADDED
Git LFS Details
|
weights/Fontaine/furina-jp/furina-jp.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aa3fc0c7983a948d3e8eee050d1a4c04b4fd5b90f9f8f7336dc6bb648df6e4cc
|
3 |
+
size 57589001
|
weights/Fontaine/model_info.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"furina-jp": {
|
3 |
+
"enable": true,
|
4 |
+
"model_path": "furina-jp.pth",
|
5 |
+
"title": "Furina - 275 Epochs",
|
6 |
+
"cover": "cover.png",
|
7 |
+
"feature_retrieval_library": "added_IVF1358_Flat_nprobe_1_furina-jp_v2.index",
|
8 |
+
"author":"ArkanDash"
|
9 |
+
},
|
10 |
+
"charlotte-jp": {
|
11 |
+
"enable": true,
|
12 |
+
"model_path": "charlotte-jp.pth",
|
13 |
+
"title": "Charlotte - 400 Epochs",
|
14 |
+
"cover": "cover.png",
|
15 |
+
"feature_retrieval_library": "added_IVF1318_Flat_nprobe_1_charlotte-jp_v2.index",
|
16 |
+
"author":"ArkanDash"
|
17 |
+
}
|
18 |
+
}
|
weights/folder_info.json
CHANGED
@@ -28,5 +28,11 @@
|
|
28 |
"title": "Sumeru",
|
29 |
"folder_path": "Sumeru",
|
30 |
"description": "[![RVC Genshin Impact](https://img.shields.io/badge/%F0%9F%A4%97_Model-RVC_Genshin_Impact-yellow?style=for-the-badge&logo=https%3A%2F%2Fhuggingface.co%2Ffront%2Fassets%2Fhuggingface_logo.svg&logoColor=yellow)](https://huggingface.co/ArkanDash/rvc-genshin-impact)"
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
}
|
|
|
28 |
"title": "Sumeru",
|
29 |
"folder_path": "Sumeru",
|
30 |
"description": "[![RVC Genshin Impact](https://img.shields.io/badge/%F0%9F%A4%97_Model-RVC_Genshin_Impact-yellow?style=for-the-badge&logo=https%3A%2F%2Fhuggingface.co%2Ffront%2Fassets%2Fhuggingface_logo.svg&logoColor=yellow)](https://huggingface.co/ArkanDash/rvc-genshin-impact)"
|
31 |
+
},
|
32 |
+
"Fontaine":{
|
33 |
+
"enable": true,
|
34 |
+
"title": "Fontaine",
|
35 |
+
"folder_path": "Fontaine",
|
36 |
+
"description": "[![RVC Genshin Impact](https://img.shields.io/badge/%F0%9F%A4%97_Model-RVC_Genshin_Impact-yellow?style=for-the-badge&logo=https%3A%2F%2Fhuggingface.co%2Ffront%2Fassets%2Fhuggingface_logo.svg&logoColor=yellow)](https://huggingface.co/ArkanDash/rvc-genshin-impact)"
|
37 |
}
|
38 |
}
|