Syntesis images noise detection using CNN approach

Jérôme BUISINE aecedc2476 Merge branch 'release/v0.0.9' il y a 5 ans
modules f80a4942e7 Creation of dataset file script added il y a 5 ans
.gitignore f80a4942e7 Creation of dataset file script added il y a 5 ans
LICENSE f80a4942e7 Creation of dataset file script added il y a 5 ans
README.md 0c40621cc5 Update of documentation il y a 5 ans
RESULTS.md 2c8ad26c6b Add of model using SVD of images il y a 6 ans
TODO.md f80a4942e7 Creation of dataset file script added il y a 5 ans
generate_dataset.py 8bd0bd342b Add of CNN model and run script il y a 5 ans
generate_reconstructed_data.py f80a4942e7 Creation of dataset file script added il y a 5 ans
preprocessing_functions.py f80a4942e7 Creation of dataset file script added il y a 5 ans
requirements.txt 153ef98eae Update code with use of IPFML package il y a 6 ans
run.sh 8bd0bd342b Add of CNN model and run script il y a 5 ans
train_model.py 8bd0bd342b Add of CNN model and run script il y a 5 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

License

MIT