ffcv icon indicating copy to clipboard operation
ffcv copied to clipboard

Access datapoints through indexing from `.beton` file without creating a DataLoader

Open Vishu26 opened this issue 2 years ago • 1 comments

Is it possible to access some datapoints from the .beton file without having to load them into a DataLoader?

Vishu26 avatar Feb 13 '23 17:02 Vishu26

The easiest way I can think to do this now would be to make a loader and pass indices=[i] where i is the index you want to access, and then access the first batch from that loader. Does that work for your use case?

andrewilyas avatar Feb 28 '23 22:02 andrewilyas