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

A ERROR #22

Open
hyk745 opened this issue Oct 27, 2019 · 1 comment
Open

A ERROR #22

hyk745 opened this issue Oct 27, 2019 · 1 comment

Comments

@hyk745
Copy link

hyk745 commented Oct 27, 2019

new ERROR,WHY???

Downloading: "https://download.pytorch.org/models/vgg16-397923af.pth" to C:\Users\Administrator/.torch\models\vgg16-397923af.pth
553433881it [20:34, 448334.95it/s]

Epoch : 0
0%| | 0/24 [00:00<?, ?it/s]T
raceback (most recent call last):
File "E:\PytorchProject\PiCANet-Implementation-master\train.py", line 97, in
for i, batch in enumerate(tqdm(dataloader)):
File "d:\ProgramData\Anaconda3\lib\site-packages\tqdm_tqdm.py", line 979, in iter
for obj in iterable:
File "d:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 615, in next
batch = self.collate_fn([self.dataset[i] for i in indices])
File "d:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 615, in
batch = self.collate_fn([self.dataset[i] for i in indices])
File "E:\PytorchProject\PiCANet-Implementation-master\dataset.py", line 137, in getitem
mask_name = os.path.join(self.root_dir, 'masks', self.mask_list[item])
IndexError: list index out of range

@Ugness
Copy link
Owner

Ugness commented Dec 5, 2019

I think you do not have mask images under "[ROOT_DIR]/masks".

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

2 participants