qubvel / segmentation_models

Segmentation models with pretrained backbones. Keras and TensorFlow Keras.
MIT License
4.66k stars 1.03k forks source link

Any way to get per class IoU scores? #562

Open TridibKrRoy opened 1 year ago

TridibKrRoy commented 1 year ago

I tried to do the same solution as per issue #447, but got the following error,

f"Found two metrics with the same name: {m._name}. "

ValueError: Found two metrics with the same name: iou_score. All the metrics added to the model need to have unique names.

Can you provide the solution?