num_samples should be a positive integer value, but got num_samples=0
See original GitHub issueI’m trying to use my own data for training with the FixedSourcesTrackFolderDataset. Unfortunatly, the data doesn’t seem to be recognized or found by the dataloader. I am using normal wav files (not stems), organized in the following folder structure:
dataset
valid
0
guitar.wav
piano.wav
...
1
2
...
train
3
guitar.wav
piano.wav
...
4
5
...
Next, I issue:
python train.py --root /path/to/dataset --dataset trackfolder_fix --target-file piano.wav --interferer-files cello.wav guitar.wav hi-hat.wav
The following error is thrown:
ValueError: num_samples should be a positive integer value, but got num_samples=0
Is this a problem with the format (folder structure) in which the data is provided? From reading the documentation I can’t figure out if a Pytorch dataclass has to be created beforehand or not. If so, how does that fit into the folder structure?
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (6 by maintainers)
@loxosceles sorry for the long delay, I will look into it this week
yes, thank you!
On Tue, Mar 10, 2020 at 12:51 PM Fabian-Robert Stöter < notifications@github.com> wrote: