-
Notifications
You must be signed in to change notification settings - Fork 5
/
image-classifier.yaml
48 lines (48 loc) · 1.13 KB
/
image-classifier.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
apiVersion: machinelearning.seldon.io/v1alpha2
kind: SeldonDeployment
metadata:
name: image
spec:
annotations:
name: image
predictors:
- componentSpecs:
- spec:
containers:
- image: docker.io/seldonio/imagenet-transformer:0.3
name: transformer
graph:
name: transformer
type: TRANSFORMER
endpoint:
type: GRPC
children:
- implementation: TENSORFLOW_SERVER
modelUri: gs://seldon-models/tfserving/imagenet/model
name: classifier
endpoint:
type: GRPC
parameters:
- name: model_name
type: STRING
value: classifier
- name: model_input
type: STRING
value: input_image
- name: model_output
type: STRING
value: predictions/Softmax:0
engineResources:
requests:
memory: 1Gi
svcOrchSpec:
env:
- name: SELDON_LOG_LEVEL
value: DEBUG
explainer:
type: AnchorImages
modelUri: gs://seldon-models/tfserving/imagenet/explainer
endpoint:
type: GRPC
name: default
replicas: 1