pkuCactus / BDCN

The code for the CVPR2019 paper Bi-Directional Cascade Network for Perceptual Edge Detection
MIT License
344 stars 74 forks source link

About the mean_bgr [104.00699, 116.66877, 122.67892] #24

Open ourana35 opened 5 years ago

ourana35 commented 5 years ago

Hi.Thank you for your amazing work. I'm confused about the line "img -=self.mean_bgr". Since I find the same operation in RCF code and I guess the mean_bgr equals to [104.00699, 116.66877, 122.67892] is the pixel mean value of BSDS500 dataset, and by which you can center the data. Actually, I calculated the mean value of images from BSDS500 training set and it's not same with [104.00699, 116.66877, 122.67892]. So I search "104.00699, 116.66877, 122.67892" on Internet and the earliest source is from FCN github, and the training dataset used is Pascal VOC2012. Would you mind explaining how you get [104.00699, 116.66877, 122.67892]?

pkuCactus commented 5 years ago

I've not calculation the mean value of BSDS500, the mean value takes from HED.