scaelles / OSVOS-TensorFlow

One-Shot Video Object Segmentation
http://vision.ee.ethz.ch/~cvlsegmentation/osvos/
GNU General Public License v3.0
438 stars 132 forks source link

Magic numbers for image preprocessing #19

Closed wenfenglin closed 6 years ago

wenfenglin commented 6 years ago

@scaelles Thanks for sharing this project.

In the function preprocess_img() from osvos.py, where do the mean values (104.00699, 116.66877, 122.67892) come from? I saw those numbers in a lot of projects, but no one has explained how they are calculated.

kmaninis commented 6 years ago

Hi, you are right! There is some explanation behind those numbers :) They are the mean color values of BSDS500 dataset, used for an old experiment that we were doing.

Since changing these values did not contribute anything to our tasks, we kept them as they are. For the record, they are taken from here.

wenfenglin commented 6 years ago

Thanks for your prompt response! It is really helpful.