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

Index Error #10

Open
saja1994 opened this issue Aug 23, 2020 · 0 comments
Open

Index Error #10

saja1994 opened this issue Aug 23, 2020 · 0 comments

Comments

@saja1994
Copy link

Please if you can help me. When I tried to run this code using COVID_CT dataset I got this error:
File "main_edge.py", line 34, in main
val_metrics, confusion_matrix = validation(args, model, val_generator, epoch, writer)
File "/content/drive/.shortcut-targets-by-id/104/COVIDNet/trainer/train.py", line 118, in validation
confusion_matrix[t.long(), p.long()] += 1
IndexError: index 968 is out of bounds for dimension 1 with size 2

How can I handle it?!
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