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 #2

Open
Fallenemperors opened this issue Oct 18, 2022 · 1 comment
Open

IndexError #2

Fallenemperors opened this issue Oct 18, 2022 · 1 comment

Comments

@Fallenemperors
Copy link

Hi,when I run train.py with my own dataset, the following errors occur
Traceback (most recent call last):
File "/data/james/lung/src/train.py", line 165, in
main()
File "/data/james/lung/src/train.py", line 135, in main
network_run.train()
File "/data/james/lung/src/run/trainer.py", line 294, in train
batch_output_data = batch_output_data[index_batch]
IndexError: index 25 is out of bounds for axis 0 with size 0

Can you help me solve the problem? Thank you very much!

@KibromBerihu
Copy link
Owner

Hi,

"IndexError: index 25 is out of bounds for axis 0 with size 0"
It seems that you are not loading/reading correctly the output data.
Please check the shape of the loaded input and output data inside the function load_dataset().

Best,
Kibrom

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