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

Downloading the dataset workaround #43

Open
isaaccorley opened this issue Feb 8, 2024 · 5 comments
Open

Downloading the dataset workaround #43

isaaccorley opened this issue Feb 8, 2024 · 5 comments

Comments

@isaaccorley
Copy link

isaaccorley commented Feb 8, 2024

For anyone else struggling to get gomapinfer installed and running to download the imagery, you can use the following to install without the error thrown by rtreego error referenced in mitroadmaps/gomapinfer#3.

GO111MODULE=off go get github.com/IronSublimate/gomapinfer/common
GO111MODULE=off go get github.com/IronSublimate/gomapinfer/googlemaps

Then replace in all .go files in this repo:

github.com/mitroadmaps/gomapinfer/common -> github.com/ironsublimate/gomapinfer/common
github.com/mitroadmaps/gomapinfer/googlemaps -> github.com/ironsublimate/gomapinfer/googlemaps

Then run to download the imagery:

mkdir /data/imagery
GO111MODULE=off go run 1_sat.go API_KEY /data/imagery

Then to generate the ground truth masks download the ground truth road graphs here https://roadmaps.csail.mit.edu/roadtracer/graphs.zip and unzip and run

mkdir /data/masks
GO111MODULE=off go run 5_truth_tiles.go graphs/gt/ /data/masks/
@bjzhb666
Copy link

bjzhb666 commented Mar 16, 2024

When I ran GO111MODULE=off go get github.com/IronSublimate/gomapinfer/common,
I got go: modules disabled by GO111MODULE=off; see 'go help modules', how should I solve it?
Thanks!

PS: My go version is GOVERSION='go1.22.1'

@isaaccorley
Copy link
Author

isaaccorley commented Mar 16, 2024

When I ran GO111MODULE=off go get github.com/IronSublimate/gomapinfer/common,

I got go: modules disabled by GO111MODULE=off; see 'go help modules', how should I solve it?

Thanks!

PS: My go version is GOVERSION='go1.22.1'

https://hf.co/datasets/isaaccorley/RoadTracer/

@bjzhb666
Copy link

bjzhb666 commented Mar 17, 2024

Thanks for your reply. But I want to use this code to download my own pictures. :)
I'm new to the Go language and I just want to get a script that can download satellite images from Google Maps.
How should I solve the problem? Maybe change the go version?

@isaaccorley
Copy link
Author

@bjzhb666 You don't actually need Go to download imagery from Maps. You can just use the Maps API directly or using python+requests. The Go code is just a wrapper around the API call https://developers.google.com/maps/documentation/maps-static/start

@rajatvarma
Copy link

When I ran GO111MODULE=off go get github.com/IronSublimate/gomapinfer/common,
I got go: modules disabled by GO111MODULE=off; see 'go help modules', how should I solve it?
Thanks!
PS: My go version is GOVERSION='go1.22.1'

https://hf.co/datasets/isaaccorley/RoadTracer/

Just wanted to thank you for doing god's work out here, you just saved my GPA

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