Hello World!
In this post, I am going to explain about how to train logistic/softmax regression model using TensorFlow, to predict if the input is a neutral face or smiling face. About the dataset, I collected images from Google Images and cropped the mouth part is manually put them into two separate folders. This is developed in Python 2.7.10 and Tensorflow 1.2.1.
Idea here's to flat the images into 1-Dimension, and train it via logistic regression.
STEPS:
X_train, X_test, y_train, y_test = train_test_split( X, Y, test_size=0.33, random_state=42)All the above steps have been well explained in the video below:
If you like the video please give a thumbs up and subscribe to the channel: https://www.youtube.com/channel/UC97_pHqfRIp6h-E30jj5JRw