dulucas / siMLPe

A Simple Baseline for Human Motion Prediction
MIT License
127 stars 19 forks source link

ValueError: num_samples should be a positive integer value, but got num_samples=0 #2

Closed gauraviiita closed 1 year ago

gauraviiita commented 2 years ago

Hello Authors, Good work, thank for uploading it. I am getting an error, please let me know what am I missing.

''' File "train.py", line 132, in sampler=sampler, shuffle=shuffle, pin_memory=True) File "/home/gaurav/anaconda3/envs/hmp1/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 268, in init sampler = RandomSampler(dataset, generator=generator) File "/home/gaurav/anaconda3/envs/hmp1/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 103, in init "value, but got num_samples={}".format(self.num_samples)) ValueError: num_samples should be a positive integer value, but got num_samples=0

'''

dulucas commented 2 years ago

It might because you didn't put the dataset in the right place?

gauraviiita commented 1 year ago

This problem occurred because of an incorrect folder of data. Thank you for your response.