lingorX / HieraSeg

CVPR2022 - Deep Hierarchical Semantic Segmentation - A structured, pixel-wise description of visual scenes in terms of the class hierarchy.
262 stars 24 forks source link

Question: distance in triplet loss #12

Open mella30 opened 1 month ago

mella30 commented 1 month ago

Hi @lingorX , I'm adapting your loss to my framework, and I'm wondering about the distance measure used in the tree triplet loss. In the paper you wrote, that you used the cosine distance but in the code, I only find this snippet: https://github.com/lingorX/HieraSeg/blob/cc3c1cfbabe3cc2af620e0193a245822cca8a841/Pytorch/mmseg/models/losses/tree_triplet_loss.py#L49 Which one did you use to produce the reported results? Did you have any insights on the choice of the distance measure?