MoonBlvd / tad-IROS2019

Code of the Unsupervised Traffic Accident Detection paper in Pytorch.
MIT License
164 stars 39 forks source link

Having Problem while Running it. #43

Open awais019 opened 1 year ago

awais019 commented 1 year ago

I'm trying to run train_ego_pred but I get this error Traceback (most recent call last): File "/home/dev007/Desktop/tad-IROS2019/train_ego_pred.py", line 41, in val_gen = data.DataLoader(val_set, **dataloader_params) File "/home/dev007/.local/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 351, in init sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type] File "/home/dev007/.local/lib/python3.10/site-packages/torch/utils/data/sampler.py", line 107, in init raise ValueError("num_samples should be a positive integer " ValueError: num_samples should be a positive integer value, but got num_samples=0

MoonBlvd commented 1 year ago

Did you download the dataset properly? Why you have num_samples=0?

awais019 commented 1 year ago

I just downloaded the A3D dataset

On Wed, May 31, 2023, 08:30 Yu (Brian) Yao @.***> wrote:

Did you download the dataset properly? Why you have num_samples=0?

— Reply to this email directly, view it on GitHub https://github.com/MoonBlvd/tad-IROS2019/issues/43#issuecomment-1569443756, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASAUBDUXBO66NT7G5OHUQV3XI23NLANCNFSM6AAAAAAYNVMIWY . You are receiving this because you authored the thread.Message ID: @.***>