|
@@ -17,10 +17,10 @@ Filters list:
|
|
|
pip install -r requirements.txt
|
|
|
```
|
|
|
|
|
|
-Generate all needed data for each metrics (which requires the the whole dataset. In order to get it, you need to contact us).
|
|
|
+Generate all needed data for each features (which requires the the whole dataset. In order to get it, you need to contact us).
|
|
|
|
|
|
```bash
|
|
|
-python generate_all_data.py --metric all
|
|
|
+python generate/generate_all_data.py --feature all
|
|
|
```
|
|
|
|
|
|
## How to use
|
|
@@ -68,19 +68,19 @@ Expected values for the **choice** parameter are ['svm_model', 'ensemble_model',
|
|
|
Now we have a model trained, we can use it with an image as input:
|
|
|
|
|
|
```bash
|
|
|
-python predict_noisy_image_svd.py --image path/to/image.png --interval "x,x" --model saved_models/xxxxxx.joblib --metric 'lab' --mode 'svdn' --custom 'min_max_filename'
|
|
|
+python prediction/predict_noisy_image_svd.py --image path/to/image.png --interval "x,x" --model saved_models/xxxxxx.joblib --feature 'lab' --mode 'svdn' --custom 'min_max_filename'
|
|
|
```
|
|
|
|
|
|
-- **metric**: metric choice need to be one of the listed above.
|
|
|
+- **feature**: feature choice need to be one of the listed above.
|
|
|
- **custom**: specify filename with custom min and max from your data interval. This file was generated using **custom** parameter of one of the **generate_data_model\*.py** script (optional parameter).
|
|
|
|
|
|
The model will return only 0 or 1:
|
|
|
- 1 means noisy image is detected.
|
|
|
- 0 means image seem to be not noisy.
|
|
|
|
|
|
-All SVD metrics developed need:
|
|
|
-- Name added into *metric_choices_labels* global array variable of **modules/utils/config.py** file.
|
|
|
-- A specification of how you compute the metric into *get_svd_data* method of **modules/utils/data_type.py** file.
|
|
|
+All SVD features developed need:
|
|
|
+- Name added into *feature_choices_labels* global array variable of **modules/utils/config.py** file.
|
|
|
+- A specification of how you compute the feature into *get_svd_data* method of **modules/utils/data_type.py** file.
|
|
|
|
|
|
### Predict scene using model
|
|
|
|
|
@@ -93,13 +93,13 @@ python prediction_scene.py --data path/to/xxxx.csv --model saved_model/xxxx.jobl
|
|
|
|
|
|
### Visualize data
|
|
|
|
|
|
-All scripts with names **display_\*.py** are used to display data information or results.
|
|
|
+All scripts with names **display/display_\*.py** are used to display data information or results.
|
|
|
|
|
|
Just use --help option to get more information.
|
|
|
|
|
|
### Simulate model on scene
|
|
|
|
|
|
-All scripts named **predict_seuil_expe\*.py** are used to simulate model prediction during rendering process. Do not forget the **custom** parameter filename if necessary.
|
|
|
+All scripts named **prediction/predict_seuil_expe\*.py** are used to simulate model prediction during rendering process. Do not forget the **custom** parameter filename if necessary.
|
|
|
|
|
|
Once you have simulation done. Checkout your **threshold_map/%MODEL_NAME%/simulation\_curves\_zones\_\*/** folder and use it with help of **display_simulation_curves.py** script.
|
|
|
|