Unfortunately, we could not create your dataset. Error during creation: Directory already exists [文件夹名称]
写在前面。这个错误是因为:数据集中包含压缩文件,且所在的位置还存在同名子文件夹。
解决灵感来源于 [URGENT] Cannot create dataset 中的回答:
I took a look and I believe there’s an issue with one of your files:
File name contains invalid character (')
I apologize for the pain point there, we’re looking to do a better job at surfacing these kinds of issues to everyone more upfront.
举个例子,当前的具体报错为 Directory already exists: Datasets.
尝试解压数据集,检查后发现子目录下有一个 Datasets
文件夹,同时还存在一个同名的压缩文件 Datasets.zip
,目录结构如下:
- 一个名为
Datasets
的文件夹 - 一个名为
Datasets.zip
的压缩文件
尝试删除/改名压缩文件后正常上传。
推断创建失败是因为压缩文件上传之后会自动全部解压缩,所以同名会发生冲突。将当前冲突的压缩文件 Dataset.zip
改名为 Dataset2.zip
:
再次上传,查看数据集:
可以发现原来的 Dataset2.zip
被解压了,印证了文章之前的推断。
总结:对于 Directory already exists [文件夹名称]
报错,检查压缩文件中是否存在有同名的压缩文件。