求助
Closed this issue · 3 comments
GewelsJI commented
我修改了输入待预测图片的后缀名
im_ext = '.png';
当运行test.m脚本的时候,遇到这个问题
Processing images: 00001/00028
Processing images: 00002/00028
Processing images: 00003/00028
Processing images: 00004/00028
Processing images: 00005/00028
Processing images: 00006/00028
Processing images: 00007/00028
Processing images: 00008/00028
Processing images: 00009/00028
Processing images: 00010/00028
Processing images: 00011/00028
Processing images: 00012/00028
Processing images: 00013/00028
Processing images: 00014/00028
Processing images: 00015/00028
Processing images: 00016/00028
Processing images: 00017/00028
Processing images: 00018/00028
Processing images: 00019/00028
Processing images: 00020/00028
Processing images: 00021/00028
Processing images: 00022/00028
Processing images: 00023/00028
Processing images: 00024/00028
Processing images: 00025/00028
Processing images: 00026/00028
Processing images: 00027/00028
Processing images: 00028/00028
Error using pngreadc
PNG library failed: Read Error.
Error in readpngutil (line 12)
[X,map,oneRow3d] = pngreadc(filename, bg,true);
Error in readpng (line 32)
[X, map, alpha] = readpngutil(filename, bg, 0);
Error in imread/call_format_specific_reader (line 423)
[varargout{1:nargout}] = feval(fmt_s.read, fullname, extraArgs{:});
Error in imread (line 403)
[X, map] = call_format_specific_reader();
Error in test_AFNet (line 52)
im = imread([impath, imnames(i).name]);
ArcherFMY commented
前27张图都能跑通,感觉是最后一张图片的问题。
GewelsJI commented
readpng上的问题吗?
ArcherFMY commented
建议检查一下图片本身有没有问题。