-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters