We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add one line code in imageloader.go, I found some JPEG images can not be decoded:
imageloader.go
--- a/vision/imageloader/imageloader.go +++ b/vision/imageloader/imageloader.go @@ -115,6 +115,7 @@ func (p *ImageLoader) read() { break } if m.Empty() { + log.Printf("skip file: %s\n", hdr.Name) continue } if p.colorSpace == RGB {
2020/09/21 20:07:18 skip file: ./train/n04523525/n04523525_186.JPEG 2020/09/21 20:07:19 skip file: ./train/n03877845/n03877845_9128.JPEG 2020/09/21 20:07:19 skip file: ./train/n03196217/n03196217_5255.JPEG 2020/09/21 20:07:19 skip file: ./train/n10148035/n10148035_24837.JPEG 2020/09/21 20:07:19 skip file: ./train/n09468604/n09468604_9453.JPEG 2020/09/21 20:07:19 skip file: ./train/n01843383/n01843383_4061.JPEG 2020/09/21 20:07:19 skip file: ./train/n03388549/n03388549_10331.JPEG 2020/09/21 20:07:19 skip file: ./train/n03721384/n03721384_8410.JPEG
The text was updated successfully, but these errors were encountered:
I meet the same issue. Following is a link: https://answers.opencv.org/question/57726/imread-succeeds-to-read-image-but-imdecode-cannot-decode-the-buffer/
Sorry, something went wrong.
Fixed by #349
No branches or pull requests
Add one line code in
imageloader.go
, I found some JPEG images can not be decoded:The text was updated successfully, but these errors were encountered: