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 99 is out of bounds for dimension 1 with size 1 #218

Open
Jack47746 opened this issue Jun 25, 2021 · 13 comments
Open

IndexError: index 99 is out of bounds for dimension 1 with size 1 #218

Jack47746 opened this issue Jun 25, 2021 · 13 comments

Comments

@Jack47746
Copy link

Jack47746 commented Jun 25, 2021

作者您好,冒昧的打扰您,感谢您对代码的分享。我最近在复现您给的代码的时候遇到了这样一个错误,不知道如何解决,希望您能指点一二。本人小白一枚,我认为错误的行在index = np.argwhere(true_disp>0),但是不知道如何更改,谢谢您!(我是这样训练的:用Scene Flow模型运行main进行训练,然后加载训练结果,用KT2015运行finetune进行微调)
image
image

@Jack47746
Copy link
Author

已解决。

@pridexin
Copy link

你好遇到了同样的问题,请问是如何解决的呢?

@Jack47746
Copy link
Author

@pridexin #217 (comment)

@pridexin
Copy link

@pridexin #217 (comment)

谢谢!我好像遇到了和您当初一样的问题,请问您cpu溢出的问题是怎么解决的呀

@Jack47746
Copy link
Author

我暂时也没找到解决方法....你有什么好的办法不?

@pridexin
Copy link

我暂时也没找到解决方法....你有什么好的办法不?

还在研究当中,有方案了告诉你

@Jack47746
Copy link
Author

朋友,你有微信吗

@Jack47746 Jack47746 reopened this Jun 28, 2021
@Jack47746
Copy link
Author

Jack47746 commented Jun 28, 2021 via email

@Jack47746
Copy link
Author

Jack47746 commented Jun 28, 2021 via email

@hubery4
Copy link

hubery4 commented Jun 28, 2021

@Jack47746 @pridexin
The error of the problem is still the dimension of true_disp and pred_disp, where I put the ‘:’ in the wrong place. true_disp has dimension (1, 368, 1232), while pred_disp has (1,1, 368, 1232). It hence should be corrected as the pred_disp[:, index[0][:], index[1][:], index[2][:]]**** when calculating disp_true.

@aihaoc
Copy link

aihaoc commented Aug 21, 2021

@pridexin #217 (comment)

谢谢!我好像遇到了和您当初一样的问题,请问您cpu溢出的问题是怎么解决的呀

请问cpu溢出问题解决了吗?

@Jack47746 Jack47746 reopened this Dec 3, 2021
@keepuplearning
Copy link

@Jack47746 @pridexin The error of the problem is still the dimension of true_disp and pred_disp, where I put the ‘:’ in the wrong place. true_disp has dimension (1, 368, 1232), while pred_disp has (1,1, 368, 1232). It hence should be corrected as the pred_disp[:, index[0][:], index[1][:], index[2][:]]**** when calculating disp_true.

Hello, I have an question about the code here. In my opinion, Index[0][:] is a list which contains 4 elements, so I don't understand why this 'disp_true[index[0][:], index[1][:], index[2][:]]' can run.

@babyblue-wsz
Copy link

@Jack47746 @pridexin The error of the problem is still the dimension of true_disp and pred_disp, where I put the ‘:’ in the wrong place. true_disp has dimension (1, 368, 1232), while pred_disp has (1,1, 368, 1232). It hence should be corrected as the pred_disp[:, index[0][:], index[1][:], index[2][:]]**** when calculating disp_true.

Thank you so much!!! I read all your comments in #218 #217 and #216, and solved my problem by setting batch_size to 1, and correcting the calculating expression of "pred_disp". I used NVIDIA 2080TI.

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

6 participants