1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 01:10:22 +08:00

chore(format): run black on dev (#101)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-11-28 23:20:17 +09:00
committed by GitHub
parent 5969314e8d
commit 51c85fcc49
6 changed files with 46 additions and 20 deletions

View File

@@ -104,7 +104,13 @@ def summarize(
def latest_checkpoint_path(dir_path, regex="G_*.pth"):
f_list = glob.glob(os.path.join(dir_path, regex))
f_list.sort(key=lambda f: 999999999999 if isinstance(f, str) and f == "latest" else int("0"+"".join(filter(str.isdigit, f))))
f_list.sort(
key=lambda f: (
999999999999
if isinstance(f, str) and f == "latest"
else int("0" + "".join(filter(str.isdigit, f)))
)
)
x = f_list[-1]
logger.debug(x)
return x