-
Notifications
You must be signed in to change notification settings - Fork 7
/
ocroline-train.yaml
32 lines (32 loc) · 838 Bytes
/
ocroline-train.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
apiVersion: batch/v1
kind: Job
metadata:
name: ocroline-train
spec:
template:
spec:
containers:
- name: ocroline-train
image: gcr.io/research-191823/ocropy
workingDir: "/tmp"
command: ["/usr/local/bin/runcmd"]
args:
- ocroline-train
- "-d"
- "http://storage.googleapis.com/lpr-ocr/uw3-dew-training.tgz"
- "-t"
- "http://storage.googleapis.com/lpr-ocr/uw3-dew-testing.tgz"
- "-o"
- "ol"
- "--sync"
- "gsutil cp '{fname}' 'gs://lpr-ocrmodels/{fname}'"
resources:
requests:
limits:
nvidia.com/gpu: "1"
cpu: 12
memory: "48000Mi"
nodeSelector:
cloud.google.com/gke-accelerator: nvidia-tesla-p100
restartPolicy: Never
backoffLimit: 4