Adaptive_Fusion_RGBD_Saliency_Detection
Adaptive_Fusion_RGBD_Saliency_Detection copied to clipboard
dataset.py
where is the dataset.py I dont konw how to Normalize the depth image.
If you have depth images like those in data/depth/
, just feed them into the network. If you have raw depth data, normalize it into [0,1]
(it should be [0,255]
in image format), 1
stands for the closest position while 0
stands for the farthest. The following codes may be helpful to you:
tempD = rawDepth - min(rawDepth(:))
normD = 1 - tempD / max(tempD(:))
thank you!when I look at your code , I do not know your total loss how to calculate.how many are the weights of three loss, when you calculate the total loss?