alexgkendall / SegNet-Tutorial

Files for a tutorial to train SegNet for road scenes using the CamVid dataset
http://mi.eng.cam.ac.uk/projects/segnet/tutorial.html
847 stars 517 forks source link

class_weighting #31

Closed langbin2014 closed 8 years ago

langbin2014 commented 8 years ago
class_weighting: 0.2595
class_weighting: 0.1826
class_weighting: 4.5640
class_weighting: 0.1417
class_weighting: 0.9051
class_weighting: 0.3826
class_weighting: 9.6446
class_weighting: 1.8418
class_weighting: 0.6823
class_weighting: 6.2478
class_weighting: 7.3614

How do I calculate them?Please help me.

hazirbas commented 8 years ago

You can check out the formula here: http://arxiv.org/pdf/1411.4734v4.pdf

we weight each pixel by αc = median freq/freq(c) where freq(c) is the number of pixels of class c divided by the total number of pixels in images where c is present, and median freq is the median of these frequencies.

langbin2014 commented 8 years ago

Thank you very much.