RuntimeError: Error during processing file (Expected image (JPEG, PNG, or GIF), got empty file[[node

分手后的思念是犯贱 2022-11-13 06:23 288阅读 0赞

RuntimeError: Error during processing file photos\lisi\lisi2.jpg (Expected image (JPEG, PNG, or GIF), got empty file [[node DecodeJpeg (defined at D:…\Anaconda3\envs\image_classify\lib\site-packages\tensorflow_core\python\framework\ops.py:1748) ]]

报错信息

  1. tensorflow.python.framework.errors_impl.InvalidArgumentError: Expected image (JPEG, PNG, or GIF), got empty file
  2. [[{
  3. {node DecodeJpeg}}]]
  4. tensorflow.python.framework.errors_impl.InvalidArgumentError: Expected image (JPEG, PNG, or GIF), got empty file
  5. [[node DecodeJpeg (defined at D:\ProgramData\Anaconda3\envs\image_classify\lib\site-packages\tensorflow_core\python\framework\ops.py:1748) ]]
  6. RuntimeError: Error during processing file photos\lisi\lisi2.jpg (Expected image (JPEG, PNG, or GIF), got empty file
  7. [[node DecodeJpeg (defined at D:\...\Anaconda3\envs\image_classify\lib\site-packages\tensorflow_core\python\framework\ops.py:1748) ]]

报错原因

\[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-3YEBHDO0-1616722652992)(evernotecid://A7BA1EDC-F70B-4A16-ABAA-EDD379BB023D/appyinxiangcom/29884553/ENResource/p302)\]

图片为空。图片在pycharm上可以看到,但打不开 image not loaded

解决办法

刷新pycharm,重新更换图片

欢迎大家交流学习,任何问题都可以留言

发表评论

表情:
评论列表 (有 0 条评论,288人围观)

还没有评论,来说两句吧...

相关阅读