I get a good result from the paper: LoFTR: Detector-Free Local Feature Matching with Transformers.

Now I want to get a depth map from the feature matching result.
So I really hope that maybe someone can give me a link or code to reach this goal. Thank you so much.
You will not be able to achieve a reliable depth or disparity map using the feature matches, especially with the example you posted. A general algorithm to get you started on a low quality depth map would be: