SciSharp / SciSharp-Stack-Examples

Practical examples written in SciSharp's machine learning libraries
http://scisharpstack.org
Apache License 2.0
313 stars 100 forks source link

Unhandled exception. Tensorflow.InvalidArgumentError: Unknown image file format. One of JPEG, PNG, GIF, BMP required. [[{{node DecodeJpeg}}]] #51

Closed dorodorodororo closed 3 years ago

dorodorodororo commented 3 years ago

Hi, I'm currently trying to use ImageRecognitionInception example using my own trained model. (which is a frozen inception .pb file) But here comes a problem.

Unhandled exception. Tensorflow.InvalidArgumentError: Unknown image file format. One of JPEG, PNG, GIF, BMP required. [[{{node DecodeJpeg}}]]

image

This happens even I used a right file format. I tried JPEG, PNG, JPG (It worked well when I used a provided sample images and trained models) I brought my own files from google drive. Is this could be a problem? And also, can I fix this problem by changing my Exception Settings as well?

It would be so thankful if you give me some comments with this.