kazuto1011 / deeplab-pytorch

PyTorch re-implementation of DeepLab v2 on COCO-Stuff / PASCAL VOC datasets
MIT License
1.09k stars 282 forks source link

what do we mean by unary? #104

Closed seyeeet closed 3 years ago

seyeeet commented 3 years ago

can you please tell me what does unary map (here U = utils.unary_from_softmax(probmap) ) should look like? is it like binary map?

I guess my question is more fundamental, like what is unary map? :)

thanks

kazuto1011 commented 3 years ago

The function just computes a negative logarithm of the class probability map for a computational reason. The unary map is like a prior of pixel attributes. CRF updates/smoothens the prior based on the spatial continuity on RGB.

seyeeet commented 3 years ago

Thanks @kazuto1011