hellochick / PSPNet-tensorflow

TensorFlow-based implementation of "Pyramid Scene Parsing Network".
326 stars 123 forks source link

PACC instead of mIoU #54

Open mishaelran opened 5 years ago

mishaelran commented 5 years ago

Hi Hellochick, i would like to get PACC evaluation instead of mIoU metrics do you know how i can implement it in the code? (i am using cityscapes) original: mIoU, update_op = tf.contrib.metrics.streaming_mean_iou(pred, gt, num_classes=num_classes)

if i change the tf function to: image

will i get the pixel accuracy?

or this image

REFunction commented 5 years ago

Hi Hellochick, i would like to get PACC evaluation instead of mIoU metrics do you know how i can implement it in the code? (i am using cityscapes) original: mIoU, update_op = tf.contrib.metrics.streaming_mean_iou(pred, gt, num_classes=num_classes)

if i change the tf function to: image

will i get the pixel accuracy?

or this image

The two are Pixel Accuracy and mean Pixel Accuracy. You can learn about them.