github.com
  
  
    pytorch/vision/blob/e96f2d5c5a6a4d43154e2119ea88b62ea58e61d3/torchvision/datasets/utils.py#L64-L67

# check if file is already present locally
if check_integrity(fpath, md5):
    print('Using downloaded and verified file: ' + fpath)
else:   # download the file



  
  
    
    
  
  


Torchvision MNIST dataset doesn’t download archive files if they already exist:
data/MNIST/train-images-idx3-ubyte.gz
data/MNIST/train-labels-idx1-ubyte.gz
data/MNIST/t10k-images-idx3-ubyte.gz
data/MNIST/t10k-labels-idx1-ubyte.gz