mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 21:45:00 +03:00
update
This commit is contained in:
parent
d3e49efd69
commit
c0448db0ec
@ -13,22 +13,14 @@ from downloader.Downloader import download, download_no_tqdm
|
|||||||
|
|
||||||
|
|
||||||
def downloadInitialSamples(mode: RVCSampleMode, model_dir: str):
|
def downloadInitialSamples(mode: RVCSampleMode, model_dir: str):
|
||||||
print("1111111111111")
|
|
||||||
sampleJsonUrls, sampleModels = getSampleJsonAndModelIds(mode)
|
sampleJsonUrls, sampleModels = getSampleJsonAndModelIds(mode)
|
||||||
print("11111111111112")
|
|
||||||
sampleJsons = _downloadSampleJsons(sampleJsonUrls)
|
sampleJsons = _downloadSampleJsons(sampleJsonUrls)
|
||||||
print("11111111111113")
|
|
||||||
if os.path.exists(model_dir):
|
if os.path.exists(model_dir):
|
||||||
print("[Voice Changer] model_dir is already exists. skip download samples.")
|
print("[Voice Changer] model_dir is already exists. skip download samples.")
|
||||||
return
|
return
|
||||||
print("11111111111114")
|
|
||||||
samples = _generateSampleList(sampleJsons)
|
samples = _generateSampleList(sampleJsons)
|
||||||
print("11111111111115")
|
|
||||||
slotIndex = list(range(len(sampleModels)))
|
slotIndex = list(range(len(sampleModels)))
|
||||||
print("11111111111116")
|
|
||||||
_downloadSamples(samples, sampleModels, model_dir, slotIndex)
|
_downloadSamples(samples, sampleModels, model_dir, slotIndex)
|
||||||
print("11111111111117")
|
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user