Skip to content

Instantly share code, notes, and snippets.

@csanz
Last active September 19, 2017 16:30
Show Gist options
  • Save csanz/118ceca54ce5b8fa5657cd6a68ea90d1 to your computer and use it in GitHub Desktop.
Save csanz/118ceca54ce5b8fa5657cd6a68ea90d1 to your computer and use it in GitHub Desktop.
# COLLECT / TRAIN
from skycatch import drone, ai
async def run():
try:
collection =
await drone.runCollection()
await
ai.train.labeling_queue(collection.data)
except Exception as exc:
print('Internal collection '
'error: {!r}'.format(exc))
# INSPECT / ACT
from skycatch import drone, api, ai
async def run():
try:
collection =
await drone.runInspection()
inferences =
await ai.infer(inspection.data)
# customer workflow API, callback
api.callback(inferences)
except Exception as exc:
print('Internal inspection '
'error: {!r}'.format(exc))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment