Skip to content

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

Description

@jbmaxwell

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions