Skip to content

Commit

Permalink
chore(release): v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Nov 20, 2020
1 parent 97e19b5 commit d844dc3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
24 changes: 18 additions & 6 deletions examples/pipelines/dextr.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d844dc3

Please sign in to comment.