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

Index Error while training #29

Open
AmeenAli opened this issue Feb 2, 2020 · 4 comments
Open

Index Error while training #29

AmeenAli opened this issue Feb 2, 2020 · 4 comments

Comments

@AmeenAli
Copy link

AmeenAli commented Feb 2, 2020

Hello

I am getting the following error while training :
File "/data/home/ameen.ali/food/im2recipe-Pytorch/data_loader.py", line 103, in __getitem__ path = os.path.join(self.imgPath, loader_path, imgs[imgIdx]['id']) IndexError: list index out of range


ANy idea what is the problem ?

@jmarintur
Copy link
Contributor

Hi,

Thanks for using our code. Are you using the LMDB files we provide? I am afraid those may need to be updated. I will check that this is not the issue.

Best,
Javier

@scoobym
Copy link

scoobym commented Feb 26, 2020

I had the same problem.

@jmarintur
Copy link
Contributor

Hi,

Checked! You need to create again the LMDBs (using mk_dataset.py). I'll try to update the current ones we provide.

Best,
Javier

@yenicelik
Copy link

@jmarintur is this also the case for the recipe1M dataset? I am using the pre-trained lmdb files. Will these work without any change to the code when I use recipe1M? (asking as the recipe1M dataset spawns a train, test, val folder as opposed to the recipe1M+ images which do not spawn any such folders).

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

4 participants