-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
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
Crash when loading a 4 channel image when channel option is forced to 3 in StbImage.read_file #35
Comments
Ok, the problem comes from the way I'm loading the images |
Hi @ChristopheBelpaire, thanks for reporting this issue. I'll try to fix this issue sometime this week! |
$ file /Users/cocoa/Downloads/archive/PetImages/Cat/10404.jpg
/Users/cocoa/Downloads/archive/PetImages/Cat/10404.jpg: Adobe Photoshop Image, 432 x 363, RGB, 3x 8-bit channels I found one in the dataset that can cause this issue, but it's definitely not a JPEG image and seems to have wrong metadata perhaps. I'll look into this further |
Awesome, thanks! I removed the "bad" images with :
To filter the channel, everything can be loaded with this filter. |
Hi @ChristopheBelpaire, v0.6.6 is out and should fix this issue! |
Awesome! |
Hello,
I'm reading the awesome book Machine learning with elixir and
on my M1 macbook with erlang 26.2.2 and elixir 1.16.1,
the following script crashes (from chapter 7 of the book, the dataset comes from kaggle : https://www.kaggle.com/datasets/shaunthesheep/microsoft-catsvsdogs-dataset) :
Here is the debug message from lldb :
The text was updated successfully, but these errors were encountered: