Svg file not readable

Hey guys i was trying to use the first lesson to train pokemon images.
The images are inside folders and the folders are labeled

There is an error that arises when i try to fit one cycle the images which have the “svg” format.

So i tried to remove the svg files by verify_images function with file type filter in which i give “jpg”

Seems like it’s not working for me.

I am really new to this course and i am really intimidated too with such amount of awesome people.

Let me know if i forgot any practice to follow.

Thanks a lot guys

Hi ayushya hope you are having a fabulous day.

You have to remove the .SVG files before you start, from your dataset.

As far as I am aware, most vision models use raster based file formats, that are pixel based such as .jpg and .png. Svg files are vector based files, that is they use geometrical expressions written in XML. If you open up an .svg file you will see it looks similar to an html page it has text in it.

In relation to the fastai vision library trying to classify an .svg file, is like creating a text file with “this is an image file” inside and then trying to recognise the file as an image.

So either remove every .svg file from your dataset or convert them to jpg or png and then use them to train your model.

Cheers mrfabulous1 :smiley: :smiley: