Skip to content
New issue

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

re_img = transforms.Resize(imsize[i])(img) IndexError: list index out of range #92

Open
zy989 opened this issue May 6, 2021 · 6 comments

Comments

@zy989
Copy link

zy989 commented May 6, 2021

I followed the exact steps for pretraining DAMSM and downloaded & unzipped the files for data and still get this error:

AttnGAN\code\datasets.py", line 83, in get_imgs
re_img = transforms.Resize(imsize[i])(img)
IndexError: list index out of range

Can anyone help me figure out what might have caused this? I'd really appreciate it!

@ShuaiWang97
Copy link

Have you figured it out?

@dPeruman
Copy link

@zy989 Have you figured out the issue? Even I am facing the same

@zy989
Copy link
Author

zy989 commented May 25, 2021

@zy989 Have you figured out the issue? Even I am facing the same

No I haven't

@OuissalTAIM
Copy link

Have you find a solution

@leonardocarboni
Copy link

Using the bird dataset i just did
re_img = transforms.Resize(299)(img)
because by printing imsize it returned all values = 299. I think it's a problem related to how the list is made.

@CarterLsx
Copy link

no, if you wanna success to pass it
if i < (cfg.TREE.BRANCH_NUM - 1)
should be
if i < len(imsize)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants