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
label-maker-dask-0.1.0.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for label_maker_dask-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c2ac7ae2167616291472e9216de100995e14bc117a64641b51feeab8054628e |
|
MD5 | 37d873269bc373ce3f30de6f5d175482 |
|
BLAKE2b-256 | b208723654dfc43276e18a4d7329ccee109bfaea94891a2f7f6ef3120e0e1a3d |