Skip to content
Advertisement

is this txt file actually an image?

I found this GitHub rep about image classification (Male and female images) using an artificial neural network, the training data are 2 directories “./male”, and “./female”, each one contains a list of txt files.

these text files contain rows of numbers, each row of 16 numbers. a preview

JavaScript

I don’t understand! ARE THESE SUPPOSED TO BE IMAGES (matrices of pixels values)?

the rep link: https://github.com/Kurispy/neuralnet

Advertisement

Answer

By investigating the source code of Main.java we see that files are intended to be painted https://github.com/Kurispy/neuralnet/blob/master/Main.java#L90

JavaScript

and we see that each file is interpreted as 120 x 128 grayscale image, by loading first file and trying to plot it like this we see it is a picture of a face.enter image description here

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement