hed icon indicating copy to clipboard operation
hed copied to clipboard

How can i get the new statistics number in the 'datasets.py' file for new dataset

Open tqwhdx19 opened this issue 5 years ago • 1 comments

In the datasets.py file, the original code is like this: image = image - np.array((104.00698793, # Minus statistics. 116.66876762, 122.67891434)) but How can i get the new statistics number for my own dataset?

tqwhdx19 avatar Nov 19 '19 08:11 tqwhdx19

For (104.00698793, 116.66876762, 122.67891434), it comes from the Caffe version of HED. According to this link, the values are calculated by using the mean of ImageNet dataset in BGR format. You can use a similar way to calculate the statistics of your dataset.

xwjabc avatar Nov 24 '19 19:11 xwjabc