mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 13:35:12 +03:00
WIP: sample models
This commit is contained in:
parent
71683c859b
commit
1f56a6140a
1
.gitignore
vendored
1
.gitignore
vendored
@ -45,6 +45,7 @@ server/weights/
|
|||||||
server/weights_/
|
server/weights_/
|
||||||
server/weights__/
|
server/weights__/
|
||||||
server/models/
|
server/models/
|
||||||
|
server/samples.json
|
||||||
start_trainer.sh
|
start_trainer.sh
|
||||||
|
|
||||||
# venv
|
# venv
|
||||||
|
@ -146,9 +146,9 @@ def download_no_tqdm(params):
|
|||||||
f.write(chunk)
|
f.write(chunk)
|
||||||
countToDot += 1
|
countToDot += 1
|
||||||
if countToDot % 1024 == 0:
|
if countToDot % 1024 == 0:
|
||||||
print(".", end="")
|
print(".", end="", flush=True)
|
||||||
|
|
||||||
print("+", end="")
|
print("+", end="", flush=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
|
@ -7,6 +7,8 @@ from const import ModelType
|
|||||||
@dataclass
|
@dataclass
|
||||||
class RVCModelSample:
|
class RVCModelSample:
|
||||||
id: str = ""
|
id: str = ""
|
||||||
|
lang: str = ""
|
||||||
|
tag: str = ""
|
||||||
name: str = ""
|
name: str = ""
|
||||||
modelUrl: str = ""
|
modelUrl: str = ""
|
||||||
indexUrl: str = ""
|
indexUrl: str = ""
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
"RVC": [
|
"RVC": [
|
||||||
{
|
{
|
||||||
"id": "KikotoKurage_Song",
|
"id": "KikotoKurage_Song",
|
||||||
|
"lang": "ja-JP",
|
||||||
|
"tag": "",
|
||||||
"name": "黄琴海月(Song)",
|
"name": "黄琴海月(Song)",
|
||||||
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_kurage_song/KikotoKurage_Song.pth",
|
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_kurage_song/KikotoKurage_Song.pth",
|
||||||
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_kurage_song/added_IVF2252_Flat_nprobe_10.index.bin",
|
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_kurage_song/added_IVF2252_Flat_nprobe_10.index.bin",
|
||||||
@ -12,6 +14,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "KikotoKurage_Talk",
|
"id": "KikotoKurage_Talk",
|
||||||
|
"lang": "ja-JP",
|
||||||
|
"tag": "",
|
||||||
"name": "黄琴海月(Talk)",
|
"name": "黄琴海月(Talk)",
|
||||||
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_kurage_talk/KikotoKurage_Talk.pth",
|
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_kurage_talk/KikotoKurage_Talk.pth",
|
||||||
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_kurage_talk/added_IVF1022_Flat_nprobe_7.index.bin",
|
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_kurage_talk/added_IVF1022_Flat_nprobe_7.index.bin",
|
||||||
@ -22,6 +26,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "KikotoMahiro_Song",
|
"id": "KikotoMahiro_Song",
|
||||||
|
"lang": "ja-JP",
|
||||||
|
"tag": "",
|
||||||
"name": "黄琴まひろ(Song)",
|
"name": "黄琴まひろ(Song)",
|
||||||
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_mahiro_song/KikotoMahiro_Song.pth",
|
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_mahiro_song/KikotoMahiro_Song.pth",
|
||||||
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_mahiro_song/added_IVF3621_Flat_nprobe_11.index.bin",
|
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_mahiro_song/added_IVF3621_Flat_nprobe_11.index.bin",
|
||||||
@ -32,6 +38,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "KikotoMahiro_Talk",
|
"id": "KikotoMahiro_Talk",
|
||||||
|
"lang": "ja-JP",
|
||||||
|
"tag": "",
|
||||||
"name": "黄琴まひろ(Talk)",
|
"name": "黄琴まひろ(Talk)",
|
||||||
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_mahiro_talk/KikotoMahiro_Talk.pth",
|
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_mahiro_talk/KikotoMahiro_Talk.pth",
|
||||||
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_mahiro_talk/added_IVF1591_Flat_nprobe_9.index.bin",
|
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/kikoto_mahiro_talk/added_IVF1591_Flat_nprobe_9.index.bin",
|
||||||
@ -39,6 +47,54 @@
|
|||||||
"termOfUseUrl": "https://huggingface.co/wok000/vcclient_model/raw/main/rvc/kikoto_mahiro_talk/term_of_use.txt",
|
"termOfUseUrl": "https://huggingface.co/wok000/vcclient_model/raw/main/rvc/kikoto_mahiro_talk/term_of_use.txt",
|
||||||
"credit": "黄琴まひろ",
|
"credit": "黄琴まひろ",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TokinaShigure",
|
||||||
|
"lang": "ja-JP",
|
||||||
|
"tag": "",
|
||||||
|
"name": "刻鳴時雨",
|
||||||
|
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/tokina_sigure/Shigure.pth",
|
||||||
|
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/tokina_sigure/added_IVF1572_Flat_nprobe_9.index.bin",
|
||||||
|
"featureUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/tokina_sigure/total_fea.npy",
|
||||||
|
"termOfUseUrl": "https://huggingface.co/wok000/vcclient_model/raw/main/rvc/tokina_sigure/term_of_use.txt",
|
||||||
|
"credit": "刻鳴時雨",
|
||||||
|
"description": "https://huggingface.co/yasyune/Shigure_Tokina_RVC"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "Amitaro_d",
|
||||||
|
"lang": "ja-JP",
|
||||||
|
"tag": "",
|
||||||
|
"name": "あみたろ(d)",
|
||||||
|
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/amitaro_hubertjp_768_default/amitaro_hubertjp_768_def-100.pth",
|
||||||
|
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/amitaro_hubertjp_768_default/amitaro_hubertjp_768_def.0.index.bin",
|
||||||
|
"featureUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/amitaro_hubertjp_768_default/amitaro_hubertjp_768_def.0.big.npy",
|
||||||
|
"termOfUseUrl": "https://huggingface.co/wok000/vcclient_model/raw/main/rvc/amitaro_hubertjp_768_default/term_of_use.txt",
|
||||||
|
"credit": "あみたろ",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "Amitaro_n",
|
||||||
|
"lang": "ja-JP",
|
||||||
|
"tag": "",
|
||||||
|
"name": "あみたろ(n)",
|
||||||
|
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/amitaro_hubertjp_768_nadare/amitaro_hubert_jp-100.pth",
|
||||||
|
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/amitaro_hubertjp_768_nadare/amitaro_hubert_jp.0.index.bin",
|
||||||
|
"featureUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/amitaro_hubertjp_768_nadare/amitaro_hubert_jp.0.big.npy",
|
||||||
|
"termOfUseUrl": "https://huggingface.co/wok000/vcclient_model/raw/main/rvc/amitaro_hubertjp_768_nadare/term_of_use.txt",
|
||||||
|
"credit": "あみたろ",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "Amitaro_t",
|
||||||
|
"lang": "ja-JP",
|
||||||
|
"tag": "",
|
||||||
|
"name": "あみたろ(t)",
|
||||||
|
"modelUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/amitaro_hubertjp_768_tylor/amitaro_hubertjp_768_tylor-100.pth",
|
||||||
|
"indexUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/amitaro_hubertjp_768_tylor/amitaro_hubertjp_768_tylor.0.index.bin",
|
||||||
|
"featureUrl": "https://huggingface.co/wok000/vcclient_model/resolve/main/rvc/amitaro_hubertjp_768_tylor/amitaro_hubertjp_768_tylor.0.big.npy",
|
||||||
|
"termOfUseUrl": "https://huggingface.co/wok000/vcclient_model/blob/main/rvc/amitaro_hubertjp_768_tylor/term_of_use.txt",
|
||||||
|
"credit": "あみたろ",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,9 @@ class RVC:
|
|||||||
|
|
||||||
def getSampleInfo(self, id: str):
|
def getSampleInfo(self, id: str):
|
||||||
sampleInfos = list(filter(lambda x: x.id == id, self.settings.sampleModels))
|
sampleInfos = list(filter(lambda x: x.id == id, self.settings.sampleModels))
|
||||||
|
print("SAMPLE INFOS 1:", sampleInfos)
|
||||||
if len(sampleInfos) > 0:
|
if len(sampleInfos) > 0:
|
||||||
|
print("SAMPLE INFOS 2:", sampleInfos)
|
||||||
return sampleInfos[0]
|
return sampleInfos[0]
|
||||||
else:
|
else:
|
||||||
None
|
None
|
||||||
@ -130,7 +132,7 @@ class RVC:
|
|||||||
"position": 2,
|
"position": 2,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
print("[Voice Changer] Downloading model files...", end="")
|
print("[Voice Changer] Downloading model files...", end="")
|
||||||
with ThreadPoolExecutor() as pool:
|
with ThreadPoolExecutor() as pool:
|
||||||
pool.map(download_no_tqdm, downloadParams)
|
pool.map(download_no_tqdm, downloadParams)
|
||||||
|
Loading…
Reference in New Issue
Block a user