Segment Anything Model is a Good Teacher for Local Feature Learning