How can i send str to my dataloader?

is there a way to send str (e.g. Path = ‘A/B/C’) to may dataloader?

Use a custom sampler.

but the data loader cannot accept anything but numpy array

We solved it together using a custom collate_fn a time ago. Or did your usecase change?

This is the old thread

Actually, im stupid, i think that should work fine for this issue as well, I forgot i already asked this here …

No, the data loader can accept a sampler argument. And pytorch never assumes the existence of numpy, so this is not true.

1 Like