jiwoon-ahn / irn

Weakly Supervised Learning of Instance Segmentation with Inter-pixel Relations, CVPR 2019 (Oral)
MIT License
519 stars 100 forks source link

Inter-pixel relation mining. Point neighborhood. #31

Open L0thlorien opened 4 years ago

L0thlorien commented 4 years ago

Hi! Thanks for the great work! Why You take only a half of circle in get_search_paths_dst method of PathIndex class:

        for x in range(1, max_radius):
            search_dirs.append((0, x))

        for y in range(1, max_radius):
            for x in range(-max_radius + 1, max_radius):
                if x * x + y * y < max_radius ** 2:
                    search_dirs.append((y, x))

Maybe I miss something? Thanks for the explanation! :)