Skip to content

Commit e9624fb

Browse files
Kasravi, Kam Dashahba
authored andcommitted
fix for PREPROCESS_IMAGE_VERSION
Signed-off-by: Kam D Kasravi <[email protected]>
1 parent bef26f2 commit e9624fb

File tree

4 files changed

+58
-6
lines changed

4 files changed

+58
-6
lines changed

k8s/object_detection/tensorflow/rfcn/inference/fp32/mlops/pipeline/user-allocated-pvc/Krmfile

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,32 @@ openAPI:
6161
x-k8s-cli:
6262
substitution:
6363
name: IMAGE
64-
pattern: ${REGISTRY}/intel/object-detection:tf-2.3.0-imz-2.2.0-${MODEL_NAME}${IMAGE_SUFFIX}
64+
pattern: ${REGISTRY}/intel/object-detection:${IMAGE_VERSION}-${MODEL_NAME}${IMAGE_SUFFIX}
6565
values:
6666
- marker: ${REGISTRY}
6767
ref: '#/definitions/io.k8s.cli.setters.REGISTRY'
68+
- marker: ${IMAGE_VERSION}
69+
ref: '#/definitions/io.k8s.cli.setters.IMAGE_VERSION'
6870
- marker: ${MODEL_NAME}
6971
ref: '#/definitions/io.k8s.cli.setters.MODEL_NAME'
7072
- marker: ${IMAGE_SUFFIX}
7173
ref: '#/definitions/io.k8s.cli.setters.IMAGE_SUFFIX'
74+
io.k8s.cli.setters.IMAGE_VERSION:
75+
description: image version
76+
x-k8s-cli:
77+
setter:
78+
name: IMAGE_VERSION
79+
value: tf-2.3.0-imz-2.2.0
80+
isSet: true
81+
setBy: model-builder
82+
io.k8s.cli.setters.PREPROCESS_IMAGE_VERSION:
83+
description: image version
84+
x-k8s-cli:
85+
setter:
86+
name: PREPROCESS_IMAGE_VERSION
87+
value: tf-1.15.2-imz-2.2.0
88+
isSet: true
89+
setBy: model-builder
7290
io.k8s.cli.setters.IMAGE_SUFFIX:
7391
description: appended to image name
7492
x-k8s-cli:
@@ -158,11 +176,13 @@ openAPI:
158176
description: image name
159177
x-k8s-cli:
160178
substitution:
161-
name: IMAGE
162-
pattern: ${REGISTRY}/intel/object-detection:tf-1.15.2-imz-2.2.0-${PREPROCESS_NAME}
179+
name: PREPROCESS_IMAGE
180+
pattern: ${REGISTRY}/intel/object-detection:${PREPROCESS_IMAGE_VERSION}-${PREPROCESS_NAME}
163181
values:
164182
- marker: ${REGISTRY}
165183
ref: '#/definitions/io.k8s.cli.setters.REGISTRY'
184+
- marker: ${PREPROCESS_IMAGE_VERSION}
185+
ref: '#/definitions/io.k8s.cli.setters.PREPROCESS_IMAGE_VERSION'
166186
- marker: ${PREPROCESS_NAME}
167187
ref: '#/definitions/io.k8s.cli.setters.PREPROCESS_NAME'
168188
- marker: ${IMAGE_SUFFIX}

k8s/object_detection/tensorflow/rfcn/inference/fp32/mlops/pipeline/user-allocated-pvc/serving_accuracy.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,15 @@ spec:
5151
- configMapRef:
5252
name: rfcn-fp32-inference # {"$openapi":"MODEL_NAME"}
5353
volumeMounts:
54+
- name: coco-raw-data
55+
mountPath: /datasets # {"$openapi":"DATASET_DIR"}
56+
readOnly: true
5457
- name: pvc-path
5558
mountPath: /pvc # {"$openapi":"PVC_PATH"}
5659
volumes:
60+
- name: coco-raw-data
61+
hostPath:
62+
path: /datasets # {"$openapi":"DATASET_DIR"}
5763
- name: pvc-path
5864
persistentVolumeClaim:
5965
claimName: workdisk # {"$openapi":"PVC_NAME"}

k8s/object_detection/tensorflow/rfcn/inference/fp32/mlops/pipeline/user-mounted-nfs/Krmfile

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,24 @@ openAPI:
6161
x-k8s-cli:
6262
substitution:
6363
name: IMAGE
64-
pattern: ${REGISTRY}/intel/object-detection:tf-2.3.0-imz-2.2.0-${MODEL_NAME}${IMAGE_SUFFIX}
64+
pattern: ${REGISTRY}/intel/object-detection:${IMAGE_VERSION}-${MODEL_NAME}${IMAGE_SUFFIX}
6565
values:
6666
- marker: ${REGISTRY}
6767
ref: '#/definitions/io.k8s.cli.setters.REGISTRY'
68+
- marker: ${IMAGE_VERSION}
69+
ref: '#/definitions/io.k8s.cli.setters.IMAGE_VERSION'
6870
- marker: ${MODEL_NAME}
6971
ref: '#/definitions/io.k8s.cli.setters.MODEL_NAME'
7072
- marker: ${IMAGE_SUFFIX}
7173
ref: '#/definitions/io.k8s.cli.setters.IMAGE_SUFFIX'
74+
io.k8s.cli.setters.IMAGE_VERSION:
75+
description: image version
76+
x-k8s-cli:
77+
setter:
78+
name: IMAGE_VERSION
79+
value: tf-2.3.0-imz-2.2.0
80+
isSet: true
81+
setBy: model-builder
7282
io.k8s.cli.setters.IMAGE_SUFFIX:
7383
description: appended to image name
7484
x-k8s-cli:
@@ -168,15 +178,25 @@ openAPI:
168178
name: PREPROCESS_DIR
169179
value: /workspace/preprocess-coco-val
170180
setBy: model-builder
181+
io.k8s.cli.setters.PREPROCESS_IMAGE_VERSION:
182+
description: image version
183+
x-k8s-cli:
184+
setter:
185+
name: PREPROCESS_IMAGE_VERSION
186+
value: tf-1.15.2-imz-2.2.0
187+
isSet: true
188+
setBy: model-builder
171189
io.k8s.cli.substitutions.PREPROCESS_IMAGE:
172190
description: image name
173191
x-k8s-cli:
174192
substitution:
175-
name: IMAGE
176-
pattern: ${REGISTRY}/intel/object-detection:tf-1.15.2-imz-2.2.0-${PREPROCESS_NAME}
193+
name: PREPROCESS_IMAGE
194+
pattern: ${REGISTRY}/intel/object-detection:${PREPROCESS_IMAGE_VERSION}-${PREPROCESS_NAME}
177195
values:
178196
- marker: ${REGISTRY}
179197
ref: '#/definitions/io.k8s.cli.setters.REGISTRY'
198+
- marker: ${PREPROCESS_IMAGE_VERSION}
199+
ref: '#/definitions/io.k8s.cli.setters.PREPROCESS_IMAGE_VERSION'
180200
- marker: ${PREPROCESS_NAME}
181201
ref: '#/definitions/io.k8s.cli.setters.PREPROCESS_NAME'
182202
- marker: ${IMAGE_SUFFIX}

k8s/object_detection/tensorflow/rfcn/inference/fp32/mlops/pipeline/user-mounted-nfs/serving_accuracy.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ spec:
5454
volumeMounts:
5555
- name: nfs-path
5656
mountPath: /nfs # {"$openapi":"NFS_PATH"}
57+
- name: coco-raw-data
58+
mountPath: /datasets # {"$openapi":"DATASET_DIR"}
59+
readOnly: true
5760
volumes:
61+
- name: coco-raw-data
62+
hostPath:
63+
path: /datasets # {"$openapi":"DATASET_DIR"}
5864
- name: nfs-path
5965
nfs:
6066
server: 0.0.0.0 # {"$openapi":"NFS_SERVER"}

0 commit comments

Comments
 (0)