Run label maker as a dask job
Project description
label-maker-dask
Library for running label-maker as a dask job
Basic Example
Instantiate a distributed dask cluster
from dask.distributed import Client
cluster = ...
client = Client(cluster)
Create a label maker job
from label_maker_dask import LabelMakerJob
lmj = LabelMakerJob(
zoom=13,
bounds=[-44.4836425781, -23.02665962797, -43.412719726, -22.5856399016],
classes=[
{ "name": "Roads", "filter": ["has", "highway"] },
{ "name": "Buildings", "filter": ["has", "building"] }
],
imagery="http://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=ACCESS_TOKEN",
ml_type="segmentation",
label_source="https://qa-tiles-server-dev.ds.io/services/z17/tiles/{z}/{x}/{y}.pbf"
)
Build & execute the job
lmj.build_job()
lmj.execute_job()
View or otherwise use the results (by passing to a machine learning framework)
for result in lmj.results:
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file label-maker-dask-0.1.0.tar.gz
.
File metadata
- Download URL: label-maker-dask-0.1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e6d10b6c585f13e0809244955c35f3e5e26be4c9364510e7987cc71959ff5fa |
|
MD5 | 87b8d691ee9bc633f775052dc27c1365 |
|
BLAKE2b-256 | 63ccfcb59a186993d65e79a8d2cc85493579a04fee5774b459e6b24a6d037ee0 |
File details
Details for the file label_maker_dask-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: label_maker_dask-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c2ac7ae2167616291472e9216de100995e14bc117a64641b51feeab8054628e |
|
MD5 | 37d873269bc373ce3f30de6f5d175482 |
|
BLAKE2b-256 | b208723654dfc43276e18a4d7329ccee109bfaea94891a2f7f6ef3120e0e1a3d |