Error: Input buffer contains unsupported image format

1,540 views
Skip to first unread message

I. Monetaria

unread,
Dec 15, 2021, 7:20:59 AM12/15/21
to Machine Learning for Kids
Hello!

I was trying to let my model learn from added training data. I attached my source code. Month ago it worked perfectly, but now I always get the following error: 

"Error: Input buffer contains unsupported image format"

When I go to the "Train"-section (backend) where you can add manually images, appears now for every image that couldn't be loaded a red warning sign (foto attached).

Thanks for your help!
I.

Bildschirmfoto 2021-12-15 um 13.07.56.pngBildschirmfoto 2021-12-15 um 13.11.45.png

Dale Lane

unread,
Dec 15, 2021, 7:47:29 AM12/15/21
to Machine Learning for Kids
Can you share how you're setting the you variable, please?

Kind regards

D

I. Monetaria

unread,
Dec 15, 2021, 8:48:25 AM12/15/21
to Machine Learning for Kids
Yes, of course.

Bildschirmfoto 2021-12-15 um 14.47.07.png
That was a default code, I changed nothing... 

Dale Lane

unread,
Dec 15, 2021, 9:37:42 AM12/15/21
to Machine Learning for Kids
Thanks for sharing that - I can see what the problem is now.

You have this code:

  set you to (  recognise image ( costume image ) )

The costume image block returns the contents of the image
The recognise image block returns the results from using your machine learning model to classify something

Combining these into 
    recognise image ( costume image )
returns the result from classifying the costume image

In other words, this will return the string "Stein", "Papier", or "Schere".

You aren't adding image data to your training buckets. You aren't adding pictures, you are adding words like "Stein" into the training buckets. 

The error about the unsupported image format is referring to the fact that the words you are adding to the training data aren't images.

Kind regards

D

Dale Lane

unread,
Dec 15, 2021, 9:44:15 AM12/15/21
to Machine Learning for Kids
Try changing your add training data blocks to:

add training data (costume image) (Stein/Schere/Papier)

Reply all
Reply to author
Forward
0 new messages