archinetai / audio-diffusion-pytorch-trainer

Trainer for audio-diffusion-pytorch
MIT License
127 stars 22 forks source link

Error: num_samples should be a positive integer value, but got num_samples=0 #14

Open jbmaxwell opened 1 year ago

jbmaxwell commented 1 year ago

I'm trying to run train.py on exp=base_medium with the ++datamodule.dataset.path= option pointing to my data, but it's failing with the above error. Digging through the code I can only find num_samples in connection with the batch size, which is at the default of 16 (for now). Is there anything I should double-check to get past this error? Stepping through in Debug I can see that the dataset has my paths, so I don't think it's a data problem. Alternately, is there anything I can just hack to get past this? The only references to num_samples I can find are in the distribution classes in audio-diffusion-pytorch.diffusion.py... maybe just a default there? (Ugly, I know, but possible?)

Any help greatly appreciated!