Skip to content

andersvestengen/Master-thesis-project

Repository files navigation

Repository for my thesis work
"Improving Image‐sensor performance by developing on‐chip machine‐learning algorithms"

The following repository holds all the code used for testing, prototyping and creating the architecture and datasets for the project.

Images and graphs were created using the following sources.

For the project an 'encoder-decoder' style fully convolutional network was created and trained in a GAN arrangement.

Generator:

Discriminator:

Objective functions

Two objective functions were created for the project. The first was a local defect loss, which compared and penalized the model around the local area were the defect was located. This was necessary as the defects are small enough for the model to often score better if it learns to ignore them if there is no extra local penalty. The second objective function was a latent loss function, which was meant to make the model retain high frequency detail. The inpainter would be penalized if its latent (bottleneck) layer was different to the same network trained as an autoencoder. This helped reduce the blurring sometimes introduced when using regularization schemes like Spectral or batch normalization.


Dataset creation

For the project I developed my own algorithm to add synthetic defect onto almost any image. The intention was to create defects similar to those in image sensors. In that way defects could be white- or black-out, they would have a random gradient to simulate non-linearity, as well as a range of random sizes and and number of defects. the results look like the image below.


Results

The project used the SSIM and PSNR metric to give a quantitative measurement of model performance. Below is a table showing several model prototypes and their performance, averaged over 500 images. Compared to a more conventional averaging filter.


Subjective results

Below are some subjective results of the different models compared to ground truth.




About

Repository for the code and notes to the master thesis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published