Skip to content

Commit fa51d1e

Browse files
committed
更新文档中绘图使用的指令。
1 parent 6e51788 commit fa51d1e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

metrics/draw_curves.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def draw_curves(
6464
dataset_names_from_npy = list(curves.keys())
6565

6666
if dataset_aliases is None:
67-
dataset_aliases = {k: k for k in dataset_names_from_npy}
67+
dataset_aliases = OrderedDict({k: k for k in dataset_names_from_npy})
6868
else:
6969
for x in dataset_aliases.keys():
7070
if x not in dataset_names_from_npy:

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ python eval.py --dataset-json configs/datasets/rgb_sod.json --method-json config
208208
# --curves-npys 将使用曲线数据文件 output/rgb_sod/curves.npy 来绘图
209209
# --mode pr: 绘制是pr曲线;fm: 绘制的是fm曲线
210210
# --save-name 图像保存路径,只需写出名字,代码会加上由前面指定的 --style-cfg 中的 `savefig.format` 项指定的格式后缀名
211-
python plot.py --style-cfg examples/single_row_style.yml --num-rows 1 --curves-npys output/rgb_sod/curves.npy --mode pr --save-name output/rgb_sod/simple_curve_pr
211+
# --alias-yaml: 使用 yaml 文件指定绘图中使用的方法别名和数据集别名
212+
python plot.py --style-cfg examples/single_row_style.yml --num-rows 1 --curves-npys output/rgb_sod/curves.npy --mode pr --save-name output/rgb_sod/simple_curve_pr --alias-yaml configs/rgb_aliases.yaml
212213

213214
# 复杂的例子,下面指令执行后,结果保存为 output/rgb_sod/complex_curve_pr.pdf
214215
# --style-cfg 使用图像风格配置文件 examples/single_row_style.yml,这里子图较少,直接使用单行的配置

0 commit comments

Comments
 (0)