open-mmlab / mmsegmentation

OpenMMLab Semantic Segmentation Toolbox and Benchmark.
https://mmsegmentation.readthedocs.io/en/main/
Apache License 2.0
7.98k stars 2.57k forks source link

How can I get label? #1217

Open didnmj opened 2 years ago

didnmj commented 2 years ago

How can I get the results in the label from the results that came out on test.py?

python tools/test.py configs/hrnet/hrnet_config.py checkpoints/iter_40000.pth --show-dir result_test

RockeyCoss commented 2 years ago

You can save the result as a json file by specifying --work-dir

didnmj commented 2 years ago

You can save the result as a json file by specifying --work-dir

python tools/test.py configs/hrnet/hrnet_config.py checkpoints/iter_40000.pth --show-dir result_test --work-dir test

I executed this code, but the json file is not generated. What I want is not an evaluation value. I need label for each image.

RockeyCoss commented 2 years ago

We can only produce colourful visualization results. You may need to write the code by yourself.

muyuuuu commented 2 years ago

We can only produce colourful visualization results. You may need to write the code by yourself.

thank you.

zhenghan408 commented 2 years ago

Have you solved this problem?please help~