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

IndexError: index 109 is out of bounds for dimension 1 with size 1 #14

Open
zheng-xiao opened this issue May 9, 2022 · 2 comments
Open

Comments

@zheng-xiao
Copy link

Hi,
I meet an issues:
Traceback (most recent call last):
File "finetune.py", line 205, in
main()
File "finetune.py", line 179, in main
test_loss = test(imgL,imgR, disp_L)
File "finetune.py", line 140, in test
true_disp[index[0][:], index[1][:], index[2][:]]-pred_disp[index[0][:], index[1][:], index[2][:]])
IndexError: index 109 is out of bounds for dimension 1 with size 1

I don't know the reason. Could you help me?

@JiaRenChang
Copy link
Owner

Hi, @zheng-xiao,
You can check the size of both images (ture_disp and pred_disp).
It should be in 3 dimension.
Jia-Ren

@zheng-xiao
Copy link
Author

zheng-xiao commented May 11, 2022 via email

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