2vin / multiplexed_cnn

Training multiplexed convolutional neural network on MNIST dataset

Home Page:https://connect.vin/2019/11/multiplexed-cnn-selective-training-using-control-signal-in-keras/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multiplexed_cnn

Training multiplexed convvolutional neural network on MNIST dataset

In order to train CNN on DIGITS images with Black background(Type-I data) and White background(Type-II data), we need to either train separate model for both the types, or combine the model for both the types into a single model. But what if we want to train a single model with two different branches for separate prediction on each type. We can do this by using a Multiplexing layer (https://github.com/danielegrattarola/keras-multiplexer) and a control signal.

Let's say- Branch 1 - Images = B/W images | Control Signal = 0 Branch 2 - Images = W/B images | Control Signal = 1

This is how my Multiplexed CNN model on MNIST looks like -

model

We can use multiplexer to select final output of the model using the predefined control signal. This helps in training multiple branches of the network simultaneously by switching each branch using control signal during training time.

Result

result

About

Training multiplexed convolutional neural network on MNIST dataset

https://connect.vin/2019/11/multiplexed-cnn-selective-training-using-control-signal-in-keras/

License:MIT License


Languages

Language:Jupyter Notebook 87.9%Language:Python 12.1%