Closed henryqin1997 closed 2 years ago
Hello,
It is important to note that one doesn't have to read an entire file all at once. It is possible to only read regions you care about and FFCV heavily relies on that. To answer your question more precisely tt depends on the ordering:
RANDOM
. It will just read sections of the files that are needed. QUASI_RANDOM
. FFCV reads large sections of the file (default 8MB) and then keep them in memory and uses samples from the sections have have already been loaded.Hope it helps!
Hi, as posted in previous question asking why ffcv is fast, one point mentioned is that single file is used instead of many files, so it is faster to retrieve. I am curious about this: if single file is used, how does ffcv provide random shuffling?