We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi,
I found glob. glob (in utils.ckpt. load_StudioGAN_ckpts())returns an empty list, causing list index out of range to appear.
The reason is that the folder name contains special character '=', so you need to run glob.escape() to get the file in the path normally.
glob.escape()
I used
x = join(ckpt_dir, "model=G-{when}-weights-step=".format(when=when)) Gen_ckpt_path = glob.glob(glob.escape(x) + '*.pth')[0] y = join(ckpt_dir, "model=D-{when}-weights-step=".format(when=when)) Dis_ckpt_path = glob.glob(glob.escape(y) + '*.pth')[0]
instead of
Gen_ckpt_path = glob.glob(join(ckpt_dir, "model=G-{when}-weights-step*.pth".format(when=when)))[0] Dis_ckpt_path = glob.glob(join(ckpt_dir, "model=D-{when}-weights-step*.pth".format(when=when)))[0]
The text was updated successfully, but these errors were encountered:
thank.
I will reflect this ASPA.
Thank you for your kind reporting.
Sorry, something went wrong.
Fix empty list bug caused by '=' (issue= #160)
092d6a3
No branches or pull requests
hi,
I found glob. glob (in utils.ckpt. load_StudioGAN_ckpts())returns an empty list, causing list index out of range to appear.
The reason is that the folder name contains special character '=', so you need to run
glob.escape()
to get the file in the path normally.I used
instead of
The text was updated successfully, but these errors were encountered: