Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

> This is really a great job, and thank you so much for sharing your source code. Here I have a question. #15

Open
ShanZard opened this issue Jul 26, 2022 · 3 comments

Comments

@ShanZard
Copy link

This is really a great job, and thank you so much for sharing your source code. Here I have a question.
If I want to try Sat2Graph on my datasets, how to obtain the sample points (_refine_gt_graph_samplepoints.json) and the neighbors (_refine_gt_graph.p) from the ground-truth (_gt.png) please?
Appreciate your help!

In the current implementation, we take the ground truth graph (from OpenStreetMap) as input (in graph format) and generate the corresponding segmentation mask (_gt.png), the sample points (_refine_gt_graph_samplepoints.json), and the interpolated ground truth graphs (_refine_gt_graph.p). For this part, you can check the code in prepare_dataset/download.py

If your ground-truth is in segmentation format, then you may have to first convert it to graph format. Unfortunately, there is no code in this repo. I can try to add one if you need it.

The code to create the sample points and the refined ground truth graphs (_refine_gt_graph.p).

Originally posted by @songtaohe in #2 (comment)

@ShanZard
Copy link
Author

Thanks for your code. In issues 2 you reply that you will add code for ground-truth convert to graph format, so how can I find it?
感谢您的工作,我观察到您似乎也可以用中文交流,所以我将我的问题用中文说一下。我看到了apls指标的代码,然后他需要.p这种格式的文件,然而我现在只有真实的label和预测出的label并且都是.png这种图片格式的。我如何转换到.p格式呢?我在issues2 看见了您的回复,在download.py下面可以做到,但是那个代码似乎是针对SpaceNet数据集的。里面有许多的函数是针对那个数据集设计的,我似乎没有将他更改,同时您在issues 2中回复到会添加一个将分割ground-truth转换到graph format,我在哪里可以找到这段代码呢?
期待您的回复

@ShanZard
Copy link
Author

如果您可以提供一个在其他数据集上面计算APLS指标的代码,那真的太感谢了!

@shan3960
Copy link

shan3960 commented Aug 2, 2022

First of all, Let me thank you for the great work and the source code share.

I need to implement roads extraction feature for one of my project for that we need to train the model with our own data.
As you said, there is no code available in the repo for ground-truth data conversion( segmentation format to graph format)
kindly share the training data conversion code for the same, so that we could train Sat2Graph network model with our own data set. you may mail me to my email id: [email protected] or [email protected]

Thank you
Shankar Naik Rathod Karamtoth
Principal Technical Officer, C-DAC, Pune.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants