An open API service indexing awesome lists of open source software.

https://github.com/0xdeval/denoisingalgorithm


https://github.com/0xdeval/denoisingalgorithm

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# DenoisingAlgorithm
Current repository represents denoising algorithm. Current result of algorithm during training on `5 epochs` with `32 batch size` and `50 steps per epoch`:

![Train And Val Losses After 5 Epochs](https://github.com/maikReal/DenoisingAlgorithm/blob/master/results/losses.png)

I've got the following average `MSE` on `val dataset`:

![Average MSE on val dataset](https://github.com/maikReal/DenoisingAlgorithm/blob/master/results/avg_MSE_on_val.png)

## Train

During the training, algorithm use on input noisy sound and only noise. Algorithm try to find in certain noisy sound just noise and then clean the noisy one.

If you want to use your own data, change path to train folder on your own path (BUT KEEP THE STRUCTURE). Remember, you should have train and validation folders for running the training!

After training you will see the MSE metric on validation dataset.

# How To Run?

Main files:

1. main.py - with generator of data and script for starting the training
2. model.py - the UNET model for training
3. config.py - file withh all necessary settings for the code

## Locally

1. Setup all necessary parameteres in `config.py` file
2. Run `main.py` script

After finishing of the model training, you will see the MSE metric for validation dataset

## Docker

1. docker build --tag denoising_algorithm . ==> for building the image
2. docker run --tag denoising_algorithm ==> for running the image as a container

It will take some time, because I COPY all project to container (`train` folder size is about 2G)

# TODO

1. Rewrite Dockerfile