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: too many indices for array: array is 1-dimensional, but 4 were indexed #18

Open
shiyuanxiang opened this issue Jul 24, 2023 · 0 comments

Comments

@shiyuanxiang
Copy link

I got indexerror when training, traceback:
image ['0.0' '0.0' '0.0'
'/mnt/e/chrome_download/filtered_traces/com.snupps.snuppsdroid/trace_0/view_hierarchies/1.json']
image.shape (4,)
Exception in thread Thread-2:
Traceback (most recent call last):
File "/home/syx/miniconda3/envs/py37/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/syx/miniconda3/envs/py37/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/syx/infortest/Humanoid/train/loader.py", line 166, in next_batch_producer
self.load_pickles(paths_to_load)
File "/home/syx/infortest/Humanoid/train/loader.py", line 128, in load_pickles
image[self.frame_num - 1, :, :, -self.predicting_dim:] = 0.0
IndexError: too many indices for array: array is 1-dimensional, but 4 were indexed

training_data and validation_data is as bellow:
image
image

Thanks.

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

1 participant