Commit a7eff5a3 authored by Mano Brabant's avatar Mano Brabant
Browse files

Update README.md

parent a822d8d4
......@@ -61,7 +61,10 @@ You can precise the training data with the arguments noisy_train, clean_train. A
The data are generated with the generate_patches_holo.py and generate_patches_holo_fromMAT.py scripts and saved in a directory named "data1".
```
#launch a training with the following data
python3 main_holo.py --noisy_train data1/img_noisy_train_1-2-3-4-5_0-1-1.5-2-2.5_two_50_50_384.npy --clean_train data1/img_clean_train_1-2-3-4-5_0-1-1.5-2-2.5_two_50_50_384.npy --eval_patterns 1 2 3 --eval_noises "0-1-1.5"
python3 main_holo.py
--noisy_train data1/img_noisy_train_1-2-3-4-5_0-1-1.5-2-2.5_two_50_50_384.npy
--clean_train data1/img_clean_train_1-2-3-4-5_0-1-1.5-2-2.5_two_50_50_384.npy
--eval_patterns 1 2 3 --eval_noises "0-1-1.5"
```
You can also precise the different hyperparameters for the training
......@@ -91,16 +94,26 @@ To do a de-noising operation you have to use the test_mode argument.
You can use the argument test_noisy_img, test_noisy_key, test_clean_img and test_clean_key to precise which image you want to de-noise
The clean image will only be used to give the level of remaining noise after the de-noising operation. If you don't have a clean reference just give the noisy reference again.
```
#launch a denoising operation on the image DATA_1_Phase_Type1_2_0.25_1.5_4_50.mat with the model experiment_xxx at the epoch 130
python3 main_holo.py --test_mode --test_noisy_img Holography/DATAEVAL/DATAEVAL/DATA_1_Phase_Type1_2_0.25_1.5_4_50.mat --test_noisy_key 'Phaseb' --test_clean_img Holography/DATAEVAL/DATAEVAL/DATA_1_Phase_Type1_2_0.25_1.5_4_50.mat --test_clean_key 'Phase' --input_dir PyTorchExperiments/experiment_xxx --epoch 130
#launch a denoising operation on the image DATA_1_Phase_Type1_2_0.25_1.5_4_50.mat
#with the model experiment_xxx at the epoch 130
python3 main_holo.py --test_mode
--test_noisy_img Holography/DATAEVAL/DATAEVAL/DATA_1_Phase_Type1_2_0.25_1.5_4_50.mat
--test_noisy_key 'Phaseb'
--test_clean_img Holography/DATAEVAL/DATAEVAL/DATA_1_Phase_Type1_2_0.25_1.5_4_50.mat
--test_clean_key 'Phase'
--input_dir PyTorchExperiments/experiment_xxx --epoch 130
#launch a denoising operation on the image test.jpg with the model experiment_xxx at the epoch 130
python3 main_holo.py --test_mode --test_noisy_img test.jpg --test_clean_img test.jpg --input_dir PyTorchExperiments/experiment_xxx --epoch 130
python3 main_holo.py --test_mode
--test_noisy_img test.jpg
--test_clean_img test.jpg
--input_dir PyTorchExperiments/experiment_xxx --epoch 130
```
If you do not give an image to de-noise, an evaluation of the entire training and testing database will be done start.
```
#launch a denoising operation on the 25 images of Holography/DATABASE and Holography/DATAEVAL/DATAEVAL database with the model experiment_xxx at the epoch 130
#launch a denoising operation on the 25 images of Holography/DATABASE and Holography/DATAEVAL/DATAEVAL
#database with the model experiment_xxx at the epoch 130
python3 main_holo.py --test_mode --input_dir PyTorchExperiments/experiment_xxx --epoch 130
```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment