Hi, could we suppress output("Files already downloaded and verified") because users often collect data from stdout and this message is a bit annoying when parsing log files.
Hi @xuanqing94,
One way to avoid getting this message is to pass download=False to the constructor, then it won't even try to download (and subsequently tell you it already exists).
Ideally, we should move all of these messages into a logger at a verbose level (using pythons logging library). Then the user can decide what handlers they want to attach and what log level they care about.
Let me know if this solves your problem.
Thanks @alykhantejani I know set download=False will work, just thinking about the verbose level as you explained.
You can comment the line that prints the message in file "/miniconda3/envs/pytorch/lib/python3.7/site-packages/torchvision/datasets/cifar.py". To find the line you can search the string "Files already downloaded and verified" in the file.
Most helpful comment
Thanks @alykhantejani I know set download=False will work, just thinking about the verbose level as you explained.