MUNIT icon indicating copy to clipboard operation
MUNIT copied to clipboard

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

Open akshaydp1995 opened this issue 5 years ago • 3 comments

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

akshaydp1995 avatar Jul 13 '19 18:07 akshaydp1995

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

APhun avatar Dec 11 '19 08:12 APhun

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

stillstream avatar Sep 10 '20 01:09 stillstream

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

BassantSamy avatar Sep 24 '20 18:09 BassantSamy