Humanoid icon indicating copy to clipboard operation
Humanoid copied to clipboard

IndexError: too many indices for array: array is 1-dimensional, but 4 were indexed

Open shiyuanxiang opened this issue 1 year ago • 0 comments

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.

shiyuanxiang avatar Jul 24 '23 13:07 shiyuanxiang