Created
October 20, 2020 21:52
-
-
Save savan77/3d9a7250efbe226a3571e8507dddaf19 to your computer and use it in GitHub Desktop.
License Plate Detection Template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - 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