You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/useful_tools.md
+63
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,69 @@ Examples:
48
48
average iter time: 1.1959 s/iter
49
49
```
50
50
51
+
## Result Analysis
52
+
53
+
`tools/analysis_tools/analyze_results.py` calculates single image mAP and saves or shows the topk images with the highest and lowest scores based on prediction results.
54
+
55
+
**Usage**
56
+
57
+
```shell
58
+
python tools/analysis_tools/analyze_results.py \
59
+
${CONFIG} \
60
+
${PREDICTION_PATH} \
61
+
${SHOW_DIR} \
62
+
[--show] \
63
+
[--wait-time ${WAIT_TIME}] \
64
+
[--topk ${TOPK}] \
65
+
[--show-score-thr ${SHOW_SCORE_THR}] \
66
+
[--cfg-options ${CFG_OPTIONS}]
67
+
```
68
+
69
+
Description of all arguments:
70
+
71
+
- `config`: The path of a model config file.
72
+
- `prediction_path`: Output result file in pickle format from `tools/test.py`
73
+
- `show_dir`: Directory where painted GT and detection images will be saved
74
+
- `--show`:Determines whether to show painted images, If not specified, it will be set to `False`
75
+
- `--wait-time`: The interval of show (s), 0 is block
76
+
- `--topk`: The number of saved images that have the highest and lowest `topk` scores after sorting. If not specified, it will be set to `20`.
77
+
- `--show-score-thr`: Show score threshold. If not specified, it will be set to `0`.
78
+
- `--cfg-options`: If specified, the key-value pair optional cfg will be merged into config file
79
+
80
+
**Examples**:
81
+
82
+
Assume that you have got result file in pickle format from `tools/test.py`in the path './result.pkl'.
83
+
84
+
1. Test Faster R-CNN and visualize the results, save images to the directory `results/`
0 commit comments