Syntesis images noise detection using CNN approach

Jerome Buisine ea2408c247 Update of model il y a 6 ans
img_train a22b32b71a First CNN model version il y a 6 ans
img_validation a22b32b71a First CNN model version il y a 6 ans
modules 61e39389c4 New svd metric model il y a 6 ans
.gitignore 67c2a0d3a5 Creation of modules for models il y a 6 ans
README.md 394af0dcca Generate database script updated il y a 6 ans
RESULTS.md 2c8ad26c6b Add of model using SVD of images il y a 6 ans
classification_cnn_keras.py 7035cdd867 Model CCN layers Updates il y a 6 ans
classification_cnn_keras_cross_validation.py 7035cdd867 Model CCN layers Updates il y a 6 ans
classification_cnn_keras_svd.py 4f05b17972 Parameters update of SVD model il y a 6 ans
classification_cnn_keras_svd_img.py ea2408c247 Update of model il y a 6 ans
config.json c1bfd6ee47 Update of generate dataset and add of config file il y a 6 ans
generate_dataset.py 61e39389c4 New svd metric model il y a 6 ans
requirements.txt 61e39389c4 New svd metric model il y a 6 ans
run.sh 6086e4316f Fix of save size of model accuracy il y a 6 ans

README.md

Noise detection project

Requirements

pip install -r requirements.txt

How to use

Generate dataset (run only once time or clean data folder before) :

python generate_dataset.py

It will split scenes and generate all data you need for your neural network. You can specify the number of sub images you want in the script by modifying _NUMBER_SUBIMAGES variable or using parameter.

python generate_dataset.py --nb xxxx

There are 3 kinds of Neural Networks :

  • classification_cnn_keras.py : based on cropped images and do convolution
  • classification_cnn_keras_cross_validation.py : based on cropped images and do convolution. Data are randomly split for training
  • classification_cnn_keras_svd.py : based on svd metrics of image

After your built your neural network in classification_cnn_keras.py, you just have to run it :

python classification_cnn_keras_svd.py --directory xxxx --output xxxxx --batch_size xx --epochs xx --img xx (or --image_width xx --img_height xx)

A config file in json is available and keeps in memory all image sizes available.

Modules

This project contains modules :

  • modules/image_metrics : where all computed metrics function are developed
  • modules/model_helper : contains helpful function to save or display model information and performance

All these modules will be enhanced during development of the project

How to contribute

This git project uses git-flow implementation. You are free to contribute to it.