forked from camenduru/ai-voice-cloning
typo
This commit is contained in:
parent
1b18b3e335
commit
51339671ec
|
@ -1539,10 +1539,10 @@ def get_autoregressive_models(dir="./models/finetunes/", prefixed=False):
|
||||||
additionals = sorted([f'{dir}/{d}' for d in os.listdir(dir) if d[-4:] == ".pth" ])
|
additionals = sorted([f'{dir}/{d}' for d in os.listdir(dir) if d[-4:] == ".pth" ])
|
||||||
found = []
|
found = []
|
||||||
for training in os.listdir(f'./training/'):
|
for training in os.listdir(f'./training/'):
|
||||||
if not os.path.isdir(f'./training/{training}/') or not os.path.isdir(f'./training/{training}/finetunes/') or not os.path.isdir(f'./training/{training}/finetunes/models/'):
|
if not os.path.isdir(f'./training/{training}/') or not os.path.isdir(f'./training/{training}/finetune/') or not os.path.isdir(f'./training/{training}/finetune/models/'):
|
||||||
continue
|
continue
|
||||||
models = sorted([ int(d[:-8]) for d in os.listdir(f'./training/{training}/finetunes/models/') if d[-8:] == "_gpt.pth" ])
|
models = sorted([ int(d[:-8]) for d in os.listdir(f'./training/{training}/finetune/models/') if d[-8:] == "_gpt.pth" ])
|
||||||
found = found + [ f'./training/{training}/finetunes/models/{d}_gpt.pth' for d in models ]
|
found = found + [ f'./training/{training}/finetune/models/{d}_gpt.pth' for d in models ]
|
||||||
|
|
||||||
if len(found) > 0 or len(additionals) > 0:
|
if len(found) > 0 or len(additionals) > 0:
|
||||||
base = ["auto"] + base
|
base = ["auto"] + base
|
||||||
|
|
Loading…
Reference in New Issue
Block a user