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

Road tracer stop after tracing only few roads. #37

Open
2016ee165 opened this issue Oct 7, 2021 · 5 comments
Open

Road tracer stop after tracing only few roads. #37

2016ee165 opened this issue Oct 7, 2021 · 5 comments

Comments

@2016ee165
Copy link

2016ee165 commented Oct 7, 2021

I am trying to run infer.py on Chicago and Boston regions using pretrained model provided on your website. I have download the imagery using 1_sat.go. I have tried various time both by giving starting location manually or reading starting location from json file. But, each time road tracer stop after tracing only few roads. I have also attached the image below. Can you kindly point out what might be the reason? Thank you.

Screenshot 2021-10-07 141225

@uakfdotb
Copy link
Member

uakfdotb commented Oct 9, 2021

This repository is from a research project and the code is not maintained anymore. If you're looking for a robust way to detect road networks, there may be more polished systems out there.

Here are several things to try to improve performance:

@2016ee165
Copy link
Author

I have tried using a lower threshold and starting from multiple locations. The result improved a bit but is still not up to the mark. I'll try training the model from scratch as the change in imagery can be the limiting factor. Thanks for your response.

@uakfdotb
Copy link
Member

OK, by the way for re-training we have newer version of code in https://github.com/favyen/muno21/tree/master/methods/roadtracerpp as a baseline for our ICCV 2021 dataset paper, MUNO21 (https://favyen.com/muno21/). It may be easier to train using the MUNO21 version, although there are some differences in the training process (the MUNO21 version corresponds to the approach in "Machine-Assisted Map Editing" instead of "RoadTracer: Automatic Extraction of Road Networks from Aerial Images"). Needs JPEG files, corresponding .graph files with ground truth road network, and a sizes.json file indicating the width/height of each JPEG image.

Another factor that may influence performance is resolution -- the model at https://mapster.csail.mit.edu/roadtracer/ is trained on 60 cm/pixel imagery. Additionally, for both the code here and the code in MUNO21, there are certain parameters (SEGMENT_LENGTH in train.py here, RoadWidth and D in mk_angles.go in the other repo) that need to be scaled depending on the resolution: the parameters are tuned for 60 cm/pixel imagery here, and 1 m/pixel imagery in MUNO21 repo.

@2016ee165
Copy link
Author

In 1_sat.go you are using Google Map API to download imagery at zoom level 18. The Google Map API provides imagery at different resolutions for different regions. How can we get 60cm/pixel imagery from MAP API for all regions? Kindly also mention whether to increase or decrease the segment length with a decrease in resolution.

Thank you for mentioning MUNO21. I'll look into it.

@ZHONIN
Copy link

ZHONIN commented Sep 8, 2022

OK, by the way for re-training we have newer version of code in https://github.com/favyen/muno21/tree/master/methods/roadtracerpp as a baseline for our ICCV 2021 dataset paper, MUNO21 (https://favyen.com/muno21/). It may be easier to train using the MUNO21 version, although there are some differences in the training process (the MUNO21 version corresponds to the approach in "Machine-Assisted Map Editing" instead of "RoadTracer: Automatic Extraction of Road Networks from Aerial Images"). Needs JPEG files, corresponding .graph files with ground truth road network, and a sizes.json file indicating the width/height of each JPEG image.

Another factor that may influence performance is resolution -- the model at https://mapster.csail.mit.edu/roadtracer/ is trained on 60 cm/pixel imagery. Additionally, for both the code here and the code in MUNO21, there are certain parameters (SEGMENT_LENGTH in train.py here, RoadWidth and D in mk_angles.go in the other repo) that need to be scaled depending on the resolution: the parameters are tuned for 60 cm/pixel imagery here, and 1 m/pixel imagery in MUNO21 repo.

Thank you very much for posting the MUNO21 dataset. Could you please make public the checkpoint (weight) file of the roadtracer trained with this dataset?

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

3 participants