jnulzl/PRNet-Train

getbatch label=np.load(item[1])

cyjouc opened this issue · 4 comments

fid=open(os_fspath(file),''rb'')
fileNotFoundError:Error 2 No such file of directory:'01_4.jpg'
sometimes , fileNotFoundError:Error 2 No such file of directory:'01_1.jpg' or fileNotFoundError:Error 2 No such file of directory:'01_3.jpg'?

how to solve the problem?

batch_data = self.getBatch(batch_list)
File "train.py", line 35, in getBatch
label = np.load(item[1])
fid = open(os_fspath(file), "rb")
FileNotFoundError: [Errno 2] No such file or directory: '_01_4.jpg'

我发现作者在生成训练集目录traindata.txt时,两个路径中间是用空格隔开的,然后数据集里有几张图片在命名时也有空格,所以训练时再用空格去split就会出错

I also got this error, have you solved it?

我发现作者在生成训练集目录traindata.txt时,两个路径中间是用空格隔开的,然后数据集里有几张图片在命名时也有空格,所以训练时再用空格去split就会出错

我把带有空格的jpg和npy文件删除后,就能正常运行了,谢谢。😁