47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
# To build the function you need to adjust docker settings. Be sure that you
|
|
# have enough memory (more than 4GB). Look here how to do that
|
|
# https://stackoverflow.com/questions/44417159/docker-process-killed-with-cryptic-killed-message
|
|
metadata:
|
|
name: openvino-yolov9-karung
|
|
namespace: cvat
|
|
annotations:
|
|
name: Yolov9 Karung Model
|
|
type: detector
|
|
spec: |
|
|
[
|
|
{ "id": 0, "name": "karung"}
|
|
]
|
|
|
|
spec:
|
|
description: Detect Karung via Intel OpenVINO with Yolov9
|
|
runtime: 'python:3.10'
|
|
handler: main:handler
|
|
eventTimeout: 60s
|
|
|
|
build:
|
|
baseImage: cvat.nuclio.base
|
|
|
|
triggers:
|
|
myHttpTrigger:
|
|
numWorkers: 2
|
|
kind: 'http'
|
|
workerAvailabilityTimeoutMilliseconds: 10000
|
|
attributes:
|
|
maxRequestBodySize: 33554432 # 32MB
|
|
|
|
platform:
|
|
attributes:
|
|
restartPolicy:
|
|
name: always
|
|
maximumRetryCount: 3
|
|
mountMode: volume
|
|
volumes:
|
|
- volumeMount:
|
|
name: nuclio
|
|
mountPath: /models
|
|
readOnly: true
|
|
volume:
|
|
name: nuclio
|
|
hostPath:
|
|
path: /data/nfs/nuclio/models/karung/20260209
|