未验证 提交 10ae3157 编写于 作者: C cnn 提交者: GitHub

update error information (#30277)

上级 ee623bff
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册