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

Assertation Error in training #90

Open
raiyan24r opened this issue May 28, 2021 · 2 comments
Open

Assertation Error in training #90

raiyan24r opened this issue May 28, 2021 · 2 comments

Comments

@raiyan24r
Copy link

Running the command throws this error in google colab
How do I solve this ?

Traceback (most recent call last):
  File "main.py", line 523, in <module>
    main()
  File "main.py", line 71, in main
    split_percentage=args.split_percentage)
  File "/content/drive/My Drive/Colab-Notebooks/end2end/Birds_Eye_View_Loss/Dataloader/Load_Data_new.py", line 316, in get_loader
    resize=resize)
  File "/content/drive/My Drive/Colab-Notebooks/end2end/Birds_Eye_View_Loss/Dataloader/Load_Data_new.py", line 51, in __init__
    assert len(self.rgb_lst) == len(self.gt_lst) == 2535
AssertionError
@raiyan24r
Copy link
Author

I also tried changing the number to the size of my dataset, same issue

@Arjun-123a
Copy link

Changing the value to 2535 gave me out of index error.

size train loader is 2901 size valid loader is 725 Traceback (most recent call last): File "/content/drive/MyDrive/LaneDetection_E2E/Backprojection_Loss/main.py", line 548, in <module> main() File "/content/drive/MyDrive/LaneDetection_E2E/Backprojection_Loss/main.py", line 89, in main split_percentage=args.split_percentage) File "/content/drive/MyDrive/LaneDetection_E2E/Backprojection_Loss/Dataloader/Load_Data_new.py", line 280, in get_loader nclasses=nclasses) File "/content/drive/MyDrive/LaneDetection_E2E/Backprojection_Loss/Dataloader/Load_Data_new.py", line 98, in __init__ self.valid_idx = [target_idx[i]-1 for i in valid_idx] File "/content/drive/MyDrive/LaneDetection_E2E/Backprojection_Loss/Dataloader/Load_Data_new.py", line 98, in <listcomp> self.valid_idx = [target_idx[i]-1 for i in valid_idx] IndexError: list index out of range

I have downloaded the dataset from the link specified in the README.

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