Authorization
In order to use the OpenStreetMap AI Helper Blueprint, there are a couple of authorization accounts you need to set up.
MAPBOX_TOKEN
Used to download the satellite images when creating a dataset and/or running inference.
You need to:
- Create an account: https://console.mapbox.com/
- Follow this guide to obtain your Default Public Token.
OSM_CLIENT_ID
and OSM_CLIENT_SECRET
Used to upload the results after running inference to the OpenStreetMap database.
You need to:
- Create an account: https://www.openstreetmap.org/user/new
- Register a new OAuth2 application: https://www.openstreetmap.org/oauth2/applications/new
Grant
Modify the map (write_api)
. Set the redirect URL tohttps://127.0.0.1:8000
. - Copy and save the
Client ID
andClient Secret
.
HF_TOKEN
Only needed if you are Creating a Dataset and/or Finetuning a Model in order to upload the results to the HuggingFace Hub.
You need to:
- Create an account: https://huggingface.co/join
- Follow this guide about
User Access Tokens