Commit 4a6c2c66 authored by Maria Kleppestø Mcculloch's avatar Maria Kleppestø Mcculloch
Browse files

Update README.md

parent 2b75e67b
......@@ -8,6 +8,9 @@ The library installation can be found here: https://github.com/deepinsight/insig
It also depends on a third party DET script.
### Running the opertaions
It can be beneficial to perfor the operations in two runs; first compute the baselines, and then compute and plot the metrics.
### Computing the baseline.
One can use the code present in main.py to compute the baseline. In order to achive this, one needs to
......@@ -17,18 +20,54 @@ One can use the code present in main.py to compute the baseline. In order to ach
2. Uncomment the following lines:
```
``
QualEval = QualityEvaluator("Instance-Name", projectpath, imgsdir, "subjectnr/samplenr")
QualEval.ArcFace_init()
QualEval.readInDataset(params, projectpath, imgsdir, "ArcFaceCasia", True )
QualEval.ComputeBaselines()
QualEval.SaveBaslines()
```
``
### Compute quality metrics
1. Change the projectpath in main.py the project paht as it is on your local machine
`` projectpath = "my/project/path/ ``
2. Uncomment the following lines in main.py:
``
QualEval = QualityEvaluator("ArcFaceCasiaV2", projectpath, imgsdir, "subjectnr/samplenr")
QualEval.Detection_Arcface_init()
QualEval.ComputeMetric("sharpness", params[0], params[1])
QualEval.ComputeMetric("focus", params[0], params[1])
QualEval.SaveMetric("sharpness")
QualEval.SaveMetric("focus")
``
3. Run the script computeBrisque.m.
### Plot quality metrics
1. Change the projectpath the project paht as it is on your local machine
`` projectpath = "my/project/path/ ``
2. Uncomment the following lines in main.py:
QualEval = QualityEvaluator("ArcFaceCasiaV2", projectpath, imgsdir, "subjectnr/samplenr")
QualEval.PlotMetric("EDC", "focus",subnr=params[0], sampnr=params[1])
QualEval.PlotMetric("EDC", "sharpness",subnr=params[0], sampnr=params[1])
QualEval.PlotMetric("EDC", "brisque",subnr=params[0], sampnr=params[1], metric_name="data/brisque/quality_values_aug")
QualEval.PlotMetric("DET", "focus",subnr=params[0], sampnr=params[1])
QualEval.PlotMetric("DET", "sharpness",subnr=params[0], sampnr=params[1])
QualEval.PlotMetric("DET", "brisque",subnr=params[0], sampnr=params[1], metric_name="data/brisque/quality_values_aug")
QualEval.PlotDETCurve(params[0],params[1])
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