htcr / sam_road

Segment Anything Model for large-scale, vectorized road network extraction from aerial imagery. CVPRW 2024
https://arxiv.org/pdf/2403.16051.pdf
MIT License
150 stars 18 forks source link

Sample vs Point #34

Closed EchoQiHeng closed 1 month ago

EchoQiHeng commented 1 month ago

Thank you for sharing your code. I am confused about the difference between "sample_indices" and "nmsed_indices." I don’t understand why random sampling is applied to the nmsed_points instead of using all the nmsed_points. What is the motivation behind this? Looking forward to your reply.

htcr commented 1 month ago

Hi, could you clarify which part of the code you were looking at?

During inference if I remember correctly we do use all the NMS-ed points.