I iterate over a large file that I know of, but I lazily process it because it is too large to fit in memory. I would like to be able to use tqdm to track my progress through the file, but since it cannot get the total number of examples from the generator that I use, the only thing it shows is the estimated iterations / sec. Is there a way to tell tqdm how many elements it will loop on the sum so that I can get some other statistics?
source share