Skip to content

Commit

Permalink
Adds example Clinical Workflows for low/med/high/dgx spec systems
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaroberts committed Feb 15, 2023
1 parent f5d3ee0 commit 277e68b
Show file tree
Hide file tree
Showing 4 changed files with 220 additions and 0 deletions.
55 changes: 55 additions & 0 deletions app/workflows/totalsegmentator-argo-template-dgx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
metadata:
name: totalsegmentator-argo-template
generateName: totalsegmentator-argo-template-
namespace: argo
spec:
templates:
- name: totalsegmentator
inputs:
artifacts:
- name: input-dicom
path: /var/monai/input
s3:
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
key: argo/inputs/artifacts/input-dicom
outputs:
artifacts:
- name: output
path: /var/monai/output
s3:
bucket: bucket1
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
key: /var/monai/output
metadata: {}
container:
name: ''
image: ghcr.io/gstt-csc/totalsegmentator-aide/map:0.1.2
command:
- /bin/bash
- '-c'
args:
- python3 -u /opt/monai/app/app.py
resources:
limits:
cpu: '20'
memory: 128Gi
nvidia.com/gpu: '1'
requests:
cpu: '0'
memory: '0'
nvidia.com/gpu: '1'
imagePullPolicy: IfNotPresent
podSpecPatch: >-
{"initContainers":[{"name":"init","resources":{"limits":{"cpu":"1","memory":"1000Mi"},"requests":{"cpu":"0","memory":"0Mi"}}}],"containers":[{"name":"wait","resources":{"limits":{"cpu":"1","memory":"1000Mi"},"requests":{"cpu":"0","memory":"0Mi"}}}]}
entrypoint: totalsegmentator
arguments: {}
55 changes: 55 additions & 0 deletions app/workflows/totalsegmentator-argo-template-high-resource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
metadata:
name: totalsegmentator-argo-template
generateName: totalsegmentator-argo-template-
namespace: argo
spec:
templates:
- name: totalsegmentator
inputs:
artifacts:
- name: input-dicom
path: /var/monai/input
s3:
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
key: argo/inputs/artifacts/input-dicom
outputs:
artifacts:
- name: output
path: /var/monai/output
s3:
bucket: bucket1
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
key: /var/monai/output
metadata: {}
container:
name: ''
image: ghcr.io/gstt-csc/totalsegmentator-aide/map:0.1.2
command:
- /bin/bash
- '-c'
args:
- python3 -u /opt/monai/app/app.py
resources:
limits:
cpu: '8'
memory: 64000Mi
nvidia.com/gpu: '1'
requests:
cpu: '0'
memory: '0'
nvidia.com/gpu: '1'
imagePullPolicy: IfNotPresent
podSpecPatch: >-
{"initContainers":[{"name":"init","resources":{"limits":{"cpu":"1","memory":"1000Mi"},"requests":{"cpu":"0","memory":"0Mi"}}}],"containers":[{"name":"wait","resources":{"limits":{"cpu":"1","memory":"1000Mi"},"requests":{"cpu":"0","memory":"0Mi"}}}]}
entrypoint: totalsegmentator
arguments: {}
55 changes: 55 additions & 0 deletions app/workflows/totalsegmentator-argo-template-low-resource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
metadata:
name: totalsegmentator-argo-template
generateName: totalsegmentator-argo-template-
namespace: argo
spec:
templates:
- name: totalsegmentator
inputs:
artifacts:
- name: input-dicom
path: /var/monai/input
s3:
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
key: argo/inputs/artifacts/input-dicom
outputs:
artifacts:
- name: output
path: /var/monai/output
s3:
bucket: bucket1
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
key: /var/monai/output
metadata: {}
container:
name: ''
image: ghcr.io/gstt-csc/totalsegmentator-aide/map:0.1.2
command:
- /bin/bash
- '-c'
args:
- python3 -u /opt/monai/app/app.py
resources:
limits:
cpu: '1'
memory: 8000Mi
nvidia.com/gpu: '1'
requests:
cpu: '0'
memory: '0'
nvidia.com/gpu: '1'
imagePullPolicy: IfNotPresent
podSpecPatch: >-
{"initContainers":[{"name":"init","resources":{"limits":{"cpu":"1","memory":"1000Mi"},"requests":{"cpu":"0","memory":"0Mi"}}}],"containers":[{"name":"wait","resources":{"limits":{"cpu":"1","memory":"1000Mi"},"requests":{"cpu":"0","memory":"0Mi"}}}]}
entrypoint: totalsegmentator
arguments: {}
55 changes: 55 additions & 0 deletions app/workflows/totalsegmentator-argo-template-med-resource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
metadata:
name: totalsegmentator-argo-template
generateName: totalsegmentator-argo-template-
namespace: argo
spec:
templates:
- name: totalsegmentator
inputs:
artifacts:
- name: input-dicom
path: /var/monai/input
s3:
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
key: argo/inputs/artifacts/input-dicom
outputs:
artifacts:
- name: output
path: /var/monai/output
s3:
bucket: bucket1
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
key: /var/monai/output
metadata: {}
container:
name: ''
image: ghcr.io/gstt-csc/totalsegmentator-aide/map:0.1.2
command:
- /bin/bash
- '-c'
args:
- python3 -u /opt/monai/app/app.py
resources:
limits:
cpu: '4'
memory: 16000Mi
nvidia.com/gpu: '1'
requests:
cpu: '0'
memory: '0'
nvidia.com/gpu: '1'
imagePullPolicy: IfNotPresent
podSpecPatch: >-
{"initContainers":[{"name":"init","resources":{"limits":{"cpu":"1","memory":"1000Mi"},"requests":{"cpu":"0","memory":"0Mi"}}}],"containers":[{"name":"wait","resources":{"limits":{"cpu":"1","memory":"1000Mi"},"requests":{"cpu":"0","memory":"0Mi"}}}]}
entrypoint: totalsegmentator
arguments: {}

0 comments on commit 277e68b

Please sign in to comment.