lartpang / PySODEvalToolkit

PySODEvalToolkit: A Python-based Evaluation Toolbox for Salient Object Detection and Camouflaged Object Detection
MIT License
168 stars 20 forks source link

为什么会生成多个图例 #24

Closed zifeiyu-c closed 8 months ago

zifeiyu-c commented 8 months ago

使用以下命令 python tools/check_path.py --method-jsons MyJson/cos_method.json --dataset-jsons MyJson/cos_dataset.json

python eval.py --method-json MyJson/cos_method.json --dataset-json MyJson/cos_dataset.json --metric-npy output/metrics.npy --curves-npy output/curves.npy

python plot.py --style-cfg MyJson/single_row_style2.yml --num-rows 2 --curves-npys output/curves.npy --mode pr --save-name output/result 出现No artists with labels found to put in legend. Note that artists whose label start with an underscore are ignored when legend() is called with no argument.提示,并生成了多个图例。 result

lartpang commented 8 months ago

@zifeiyu-c

你的指令不太合适:

python plot.py --style-cfg MyJson/single_row_style2.yml --num-rows 2 --curves-npys output/curves.npy --mode pr --save-name output/result

请尝试:

python plot.py --style-cfg MyJson/single_row_style2.yml --num-rows 2 --curves-npys output/curves.npy --mode pr --separated-legend --save-name output/result