You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.8 KiB
YAML
67 lines
1.8 KiB
YAML
metadata:
|
|
name: openvino-dextr
|
|
namespace: cvat
|
|
annotations:
|
|
name: DEXTR
|
|
type: interactor
|
|
spec:
|
|
framework: openvino
|
|
min_pos_points: 4
|
|
animated_gif: https://raw.githubusercontent.com/opencv/cvat/0fbb19ae3846a017853d52e187f0ce149adced7d/site/content/en/images/dextr_example.gif
|
|
help_message: The interactor allows to get a mask of an object using its extreme points (more or equal than 4). You can add a point left-clicking the image
|
|
|
|
spec:
|
|
description: Deep Extreme Cut
|
|
runtime: 'python:3.6'
|
|
handler: main:handler
|
|
eventTimeout: 30s
|
|
env:
|
|
- name: NUCLIO_PYTHON_EXE_PATH
|
|
value: /opt/nuclio/common/openvino/python3
|
|
|
|
volumes:
|
|
- volume:
|
|
name: openvino-common
|
|
configMap:
|
|
name: "cvat-nuclio-openvino-common"
|
|
defaultMode: 0750
|
|
volumeMount:
|
|
name: openvino-common
|
|
mountPath: /opt/nuclio/common/openvino
|
|
|
|
build:
|
|
image: cvat/openvino.dextr
|
|
baseImage: openvino/ubuntu18_runtime:2020.2
|
|
|
|
directives:
|
|
preCopy:
|
|
- kind: USER
|
|
value: root
|
|
- kind: WORKDIR
|
|
value: /opt/nuclio
|
|
- kind: RUN
|
|
value: ln -s /usr/bin/pip3 /usr/bin/pip
|
|
|
|
postCopy:
|
|
- kind: RUN
|
|
value: curl -O https://download.01.org/openvinotoolkit/models_contrib/cvat/dextr_model_v1.zip
|
|
- kind: RUN
|
|
value: unzip dextr_model_v1.zip
|
|
- kind: RUN
|
|
value: pip3 install -U pip && pip3 install wheel Pillow
|
|
|
|
triggers:
|
|
myHttpTrigger:
|
|
maxWorkers: 2
|
|
kind: 'http'
|
|
workerAvailabilityTimeoutMilliseconds: 10000
|
|
attributes:
|
|
maxRequestBodySize: 33554432 # 32MB
|
|
|
|
platform:
|
|
attributes:
|
|
restartPolicy:
|
|
name: always
|
|
maximumRetryCount: 3
|
|
mountMode: volume
|