hed
hed copied to clipboard
How can i get the new statistics number in the 'datasets.py' file for new dataset
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?
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.