Macbook pro,将图片数据集中的图片名和标签分别放在两个text文本中,出现错误,
发生异常: NotADirectoryError Errno 20 Not a directory: xim.DS_Store
亲测有效的方法是:
进入你要图片所在的那个目录,目录要进对,在终端cd 操作进入之后,输入以下命令行即可解决。
sudo find ./ -name ".DS_Store" -depth -exec rm {} \;
参考了别人文章:
出现“cannot identify image file '/Users//.DS_Store'”问题的解决办法_fitzgerald0的博客-CSDN博客