From 4363688668098c1b843320c0d82ac7d6401307c4 Mon Sep 17 00:00:00 2001 From: cnn Date: Wed, 13 Jan 2021 14:21:18 +0800 Subject: [PATCH] update error information (#30316) --- python/paddle/vision/datasets/folder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/vision/datasets/folder.py b/python/paddle/vision/datasets/folder.py index 8b17da9c92..88706a924a 100644 --- a/python/paddle/vision/datasets/folder.py +++ b/python/paddle/vision/datasets/folder.py @@ -134,7 +134,7 @@ class DatasetFolder(Dataset): is_valid_file) if len(samples) == 0: raise (RuntimeError( - "Found 0 files in subfolders of: " + self.root + "\n" + "Found 0 directories in subfolders of: " + self.root + "\n" "Supported extensions are: " + ",".join(extensions))) self.loader = default_loader if loader is None else loader -- GitLab