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 3678 is out of bounds for dimension 1 with size 3024 #84

Open
raw5 opened this issue Dec 2, 2022 · 1 comment
Open

Comments

@raw5
Copy link

raw5 commented Dec 2, 2022

I keep getting IndexError: index 3678 is out of bounds for dimension 1 with size 3024 when training my models. May I know what I am doing wrong?

Hello Wooden
Load data: Begin
Load data: End
0%| | 0/300000 [00:00<?, ?it/s]
Traceback (most recent call last):
File "exp_runner.py", line 392, in
runner.train()
File "exp_runner.py", line 105, in train
data = self.dataset.gen_random_rays_at(image_perm[self.iter_step % len(image_perm)], self.batch_size)
File "/home/user/NeuS/models/dataset.py", line 119, in gen_random_rays_at
mask = self.masks[img_idx][(pixels_y, pixels_x)] # batch_size, 3
IndexError: index 3678 is out of bounds for dimension 1 with size 3024

@newforests
Copy link

May I ask if you have solved this problem? Is there any corresponding solution recommended?

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