From 85fc434541cb4ce76f5ca73b47d96408ad7dfcba Mon Sep 17 00:00:00 2001 From: Edgar Riba Date: Thu, 14 Oct 2021 17:01:38 +0200 Subject: [PATCH] fix check integrity check with download==false --- torchvision/datasets/widerface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/datasets/widerface.py b/torchvision/datasets/widerface.py index 805a9dbec6f..aef9c5ac05c 100644 --- a/torchvision/datasets/widerface.py +++ b/torchvision/datasets/widerface.py @@ -71,7 +71,7 @@ def __init__( if download: self.download() - if not self._check_integrity(): + if download and not self._check_integrity(): raise RuntimeError( "Dataset not found or corrupted. " + "You can use download=True to download and prepare it" )