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

Error while trying python train.py --config configs/doc2doc.yaml (Custom Dataset) #68

Open
akshaydp1995 opened this issue Jul 13, 2019 · 3 comments

Comments

@akshaydp1995
Copy link

akshaydp1995 commented Jul 13, 2019

Traceback (most recent call last):
File "train.py", line 45, in
train_display_images_b = torch.stack([train_loader_b.dataset[i] for i in range(display_size)]).cuda()
File "train.py", line 45, in
train_display_images_b = torch.stack([train_loader_b.dataset[i] for i in range(display_size)]).cuda()
File "/content/MUNIT/data.py", line 119, in getitem
path = self.imgs[index]
IndexError: list index out of range

I've built on my own custom dataset called documents.
Documents is a subfolder in datasets, containing 4 directories and 4 text files.
Have made changes to .yaml file (changed last line to correspond to the correct dataset directory), and renamed as doc2doc.yaml

@APhun
Copy link

APhun commented Dec 11, 2019

Hi,
have you solved the problem? I had the same problem

@stillstream
Copy link

Hi,
have you solved the problem? I had the same problem @APhun @akshaydp1995

@BassantSamy
Copy link

reducing the display_size from 8 to 3 did the trick for me

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