forked from aoxolotl/segformer_action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action-datatorch.yaml
50 lines (49 loc) · 1.39 KB
/
action-datatorch.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
$schema: http://datatorch.io/schema/action.v1.json
name: Segformer Action
description: Runs Segformer on a given image.
inputs:
imagePath:
type: string
required: true
description: Absolute path to image
points:
type: array
required: false
description: >
4 points marking the most left, right, bottom and top points of the shape. Not used for now
url:
type: string
default: http://localhost:3445
description: >
Url for sending requests. A Segformer docker image will be spun up on this
port if not found.
image:
type: string
default: add3000/segformer_server
description: Docker image to spin up.
labelId:
type: string
default: null
description: >
Label to assign annotation to. If not provided the segmentation
will not be inserted.
annotationId:
type: string
default: null
description: >
Annotation to insert segmentation into. If not provided the segmentation
will not be inserted.
simplify:
type: float
default: 1.5
description: >
Simplification tolerance applied to segmentation before importing. Set to
0 to disable. Disabling can significantly increase pipeline performance,
but decrease annotator performance.
outputs:
segmentation:
type: array
description: Segmentation of points predicted by Segformer
runs:
using: python
main: entry.py