Image Deionising Auto Encoder Save

Noise removal from images using Convolutional autoencoder

Project README

Image_deionising_auto_encoder

This projects tries to replicate a popular technique known as Image deionising .i.e noise removal from images.It uses a convolutional autoencoder which is able to remove noise from the image.

Autoencoders

Autoencoders is an unsupervised learning technique which learns pixel to pixel mapping. It consists of an encoder-decoder network, out of which encoder tries to compress the image to extract usefull features and the decoder reconstructs the image. The problem with autoencoders is that, the quality of output image is not very detailed. The reasons for the image being not very detailed is that the we are forcing the encoder(the last layers) to learn features of the entire image, the decoder uses this encoding to reconstruct the image. As the features provided were less so is the quality. A very good tutorial for autoencoders

How Does the approach work

I tool my stone paper scissor game dataset(Although I have provided the dataset in this repo but you can have a look at my "game of stone paper scissors vs man" if you want to know how the data was generated) for training the model. We take those image resize them and add noise to them, the image containg noise is fed as input and the same images without noise are used for y_labels.
We can add noise to the images using opencv
For loading, resizing, saving of images I used opencv
I have used keras for training the autoencoder model.

Have a look at the input and ouput yourself

scissor paper stone

Requirements for the project

  1. Python 3.x
  2. Tensorflow 1.5
  3. Keras
  4. OpenCV 3.4(for loading,resizing images)
  5. h5py(for saving trained model)
  6. pyttsx3
  7. A good grasp over convolutional neural networks. For online resources refer to standford cs231n, deeplearning.ai on coursera or cs231n by standford university
  8. A good CPU (preferably with a GPU).
  9. Time
  10. datetime
  11. Patience.... A lot of it.

Installing the requirements

  1. Start your terminal of cmd depending on your os.
  2. If you have a NVidia GPU then make sure you have the prerequisites for Tensorflow GPU installation (Refer to official site). Then use this commmand
pip install -r requirements_gpu.txt
  1. In case you do not have a GPU then use this command
pip install -r requirements_cpu.txt

steps to run the repo

1)Clone the repo
2)Extract the data folders
3)Install the requirements
4)You can change the name of test image in runner.py
5)Run "runner.py"

Liked it

If you liked it you will surely like my other repos as well. You can also have a look at my youtube channel "reactor science". If you have any doubts you can contact me on my facebook page "reactor science"

References

1)Deep learning with python by Francois Chollet
2)keras.io
3)Deeplearning.ai by coursera(prof Andrew Ng)
4)CS231n by stanford
5)Pyimagesearch.com(Adrian Rosenberg)

Open Source Agenda is not affiliated with "Image Deionising Auto Encoder" Project. README Source: satinder147/Image_deionising_auto_encoder

Open Source Agenda Badge

Open Source Agenda Rating