Synthesis Images noise detection metrics developed including all approaches using SVD or others compression methods
Jerome Buisine 8c66cb1b6a Update of output folders | il y a 6 ans | |
---|---|---|
fichiersSVD | il y a 6 ans | |
fichiersSVD_light | il y a 6 ans | |
models | il y a 6 ans | |
.gitignore | il y a 6 ans | |
LICENCE | il y a 6 ans | |
README.md | il y a 6 ans | |
generateAndTrainEnsemble_random.sh | il y a 6 ans | |
generateAndTrainSVM.sh | il y a 6 ans | |
generateAndTrainSVM_random.sh | il y a 6 ans | |
generateAndTrain_maxwell.sh | il y a 6 ans | |
generate_data_svm.py | il y a 6 ans | |
generate_data_svm_random.py | il y a 6 ans | |
predictSVM.sh | il y a 6 ans | |
predictSVM_random.sh | il y a 6 ans | |
predict_noisy_image_svd_lab.py | il y a 6 ans | |
predict_seuil_expe.py | il y a 6 ans | |
prediction_scene.py | il y a 6 ans | |
requirements.txt | il y a 6 ans | |
runAll_maxwell.sh | il y a 6 ans | |
save_model_result_in_md.py | il y a 6 ans | |
testModelByScene.sh | il y a 6 ans |
pip install -r requirements.txt
Two scripts can be used for generating data in order to fit model :
Remark : Note here that all python script have --help command.
python generate_data_svm.py --help
python generate_data_svm.py --output xxxx --interval 0,20 --kind svdne --scenes "A, B, D" --zones "0, 1, 2" --percent 0.7 --sep : --rowindex 1
Parameters explained :
This is an example of how to train a model
python models/xxxxx.py --data 'data_svm/xxxxx.train' --output 'model_file_to_save'
Now we have a model trained, we can use it with an image as input :
python predict_noisy_image_svd_lab.py --image path/to/image.png --interval "x,x" --model saved_models/xxxxxx.joblib --mode 'svdn'
The model will return only 0 or 1 :
Now we have a model trained, we can use it with an image as input :
python prediction_scene.py --data path/to/xxxx.csv --model saved_model/xxxx.joblib --output xxxxx --scene xxxx
Remark : scene parameter expected need to be the correct name of the Scene.
In order to see if a model well generalized, a bash script is available :
bash testModelByScene.sh '100' '110' 'saved_models/xxxx.joblib' 'svdne'
Parameters list :
Main objective of this project is to predict as well as a human the noise perception on a photo realistic image. Human threshold is available from training data. So a script was developed to give the predicted treshold from model and compare predicted treshold from the expected one.
python predict_noisy_image.py --interval "x,x" --model 'saved_models/xxxx.joblib' --mode ["svd", "svdn", "svdne"] --limit_detection xx
Parameters list :
Another script was developed to display into Mardown format the performance of a model.
The content will be divised into two parts :
The previous script need to already have ran to obtain and display treshold maps on this markdown file.
python save_model_result_in_md.py --interval "xx,xx" --model saved_models/xxxx.joblib --mode ["svd", "svdn", "svdne"]
Parameters list :
Markdown file is saved using model name into models_info folder.
All others bash scripts are used to combine and run multiple model combinations...
This git project uses git-flow implementation. You are free to contribute to it.