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:
committed by
GitHub
parent
5969314e8d
commit
51c85fcc49
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user