Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

IndexError! #35

Open
JieyuZ2 opened this issue Mar 17, 2018 · 1 comment
Open

IndexError! #35

JieyuZ2 opened this issue Mar 17, 2018 · 1 comment

Comments

@JieyuZ2
Copy link

JieyuZ2 commented Mar 17, 2018

Checking training accuracy ...
Traceback (most recent call last):
File "scripts/train_model.py", line 490, in
main(args)
File "scripts/train_model.py", line 151, in main
train_loop(args, train_loader, val_loader)
File "scripts/train_model.py", line 269, in train_loop
baseline_model, train_loader)
File "scripts/train_model.py", line 460, in check_accuracy
program_pred = program_generator.sample(Variable(questions[i:i+1].cuda(), volatile=True))
File "/home/jiaruizou/research/clevr-iep/iep/models/seq2seq.py", line 154, in sample
y.append(next_y[0, 0, 0])
IndexError: trying to index 3 dimensions of a 2 dimensional tensor

When I train the PG, it encounter this error...

@louanesselma
Copy link

@JieyuZ2
Hi,I got the same error,have you solve it?

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

No branches or pull requests

2 participants