mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 13:35:12 +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):
|
||||
print("1111111111111")
|
||||
sampleJsonUrls, sampleModels = getSampleJsonAndModelIds(mode)
|
||||
print("11111111111112")
|
||||
sampleJsons = _downloadSampleJsons(sampleJsonUrls)
|
||||
print("11111111111113")
|
||||
if os.path.exists(model_dir):
|
||||
print("[Voice Changer] model_dir is already exists. skip download samples.")
|
||||
return
|
||||
print("11111111111114")
|
||||
samples = _generateSampleList(sampleJsons)
|
||||
print("11111111111115")
|
||||
slotIndex = list(range(len(sampleModels)))
|
||||
print("11111111111116")
|
||||
_downloadSamples(samples, sampleModels, model_dir, slotIndex)
|
||||
print("11111111111117")
|
||||
|
||||
pass
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user