From d844dc35a91d4501a26e86e4b2a024c7e64ca473 Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Thu, 19 Nov 2020 19:30:42 -0500 Subject: [PATCH] chore(release): v0.4.0 --- examples/pipelines/dextr.yaml | 24 ++++++++++++++++++------ setup.py | 2 +- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/examples/pipelines/dextr.yaml b/examples/pipelines/dextr.yaml index 13317a2..230a430 100644 --- a/examples/pipelines/dextr.yaml +++ b/examples/pipelines/dextr.yaml @@ -1,18 +1,30 @@ name: DEXTR triggers: + # Adds a button to the annotator. annotatorButton: + name: 'DEXTR' icon: brain - name: DEXTR + # Annotator will prompt the user for 4 points before triggering the pipeline flow: 4-points jobs: predict: + # Properties about the trigger event can be accessed at 'event' property steps: - - action: datatorch/download-file@v1 - cache: true + - name: Download File + action: datatorch/download-file@v1 inputs: - fileId: ${{ input.fileId }} - - action: datatorch/download-file@v1 + # Get the file id for the event that triggered this. + fileId: ${{ event.fileId }} + + - name: Predict Segmentation + action: datatorch/dextr@latest inputs: - fileId: ${{ input.fileId }} + # Download file path from the previous action. + imagePath: ${{ variable.path }} + # Get the 4 points the user clicked + points: ${{ event.flowData.points }} + # Annotation created by the four points. We will insert the + # segmentation into this annotation + annotationId: ${{ event.annotationId }} \ No newline at end of file diff --git a/setup.py b/setup.py index 53a1f30..3c29d17 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ setup( name="datatorch", - version="0.3.0", + version="0.4.0", description="A CLI and library for interacting with DataTorch", author="DataTorch", author_email="support@datatorch.io",