2020年1月5日星期日

Image .save FileNotFoundError: [Errno 2] No such file or directory: '../Dataset/testResults/5.png'

Because it is .save, the reason is obviously not that there is no "../Dataset/testResults/5.png" file.

It is:

No ../Dataset/testResults/ directory

Example:


  1. This directory has not been created
  2. typo in the directory
  3. use Chinese or other characters.



After confirming that the directory is correct, the error is resolved.

没有评论:

发表评论