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 0-dimensional, but 2 were indexed #13

Open
ZQ-perfect opened this issue Feb 6, 2023 · 0 comments

Comments

@ZQ-perfect
Copy link

你好,请问一下我用你给的数据训练时进行trainsetdataloader出现下述问题:
File "C:\Users\Lenovo\anaconda3\envs\PY\lib\site-packages\torch\utils\data_utils\fetch.py", line 58, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\Lenovo\PycharmProjects\pythonProject1\LFT\utils\utils_datasets.py", line 40, in getitem
data_SAI_y, label_SAI_y = augmentation(data_SAI_y, label_SAI_y)
File "C:\Users\Lenovo\PycharmProjects\pythonProject1\LFT\utils\utils_datasets.py", line 116, in augmentation
data = data[:, ::-1]
IndexError: too many indices for array: array is 0-dimensional, but 2 were indexed
请问是数据问题吗

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