Skip to content

Instantly share code, notes, and snippets.

@savan77
Created October 20, 2020 21:52
Show Gist options
  • Select an option

  • Save savan77/3d9a7250efbe226a3571e8507dddaf19 to your computer and use it in GitHub Desktop.

Select an option

Save savan77/3d9a7250efbe226a3571e8507dddaf19 to your computer and use it in GitHub Desktop.
License Plate Detection Template
- name: license-detector
inputs:
artifacts:
- name: src
path: /mnt/src
git:
repo: "https://github.com/onepanelio/LicensePlateOcr.git"
- name: data
path: /mnt/data/datasets/
s3:
key: '{{workflow.namespace}}/{{workflow.parameters.cvat-annotation-path}}'
- name: models
path: /mnt/data/models
s3:
key: '{{workflow.parameters.detector-path}}'
outputs:
artifacts:
- name: model
path: /mnt/output
optional: true
s3:
key: '{{workflow.namespace}}/{{workflow.parameters.cvat-output-path}}/{{workflow.name}}'
container:
image: '{{workflow.parameters.tf-image}}'
command: [sh,-c]
args:
- |
&& apt update \
&& apt install libgl1-mesa-glx ffmpeg libsm6 libxext6 libglib2.0-0 libxext6 libxrender-dev wget unzip -y \
&& cd /mnt/src/ \
&& pip install -r requirements.txt \
&& python license_detection.py --weights=/mnt/data/models/frozen_inference_graph.pb --dataset=/mnt/data/datasets/images/
workingDir: /mnt/src
volumeMounts:
- name: output
mountPath: /mnt/output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment