How can i send str to my dataloader?


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

(Simon Wang) #2

Use a custom sampler.


but the data loader cannot accept anything but numpy array

(Justus Schock) #4

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 …

(Simon Wang) #6

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