Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the YOLOv5 dependency from the YOLOv7 serverless function #6619

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions serverless/onnx/WongKinYiu/yolov7/nuclio/function-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,18 @@ spec:
eventTimeout: 30s
build:
image: cvat.onnx.wongkinyiu.yolov7
baseImage: ultralytics/yolov5:latest
baseImage: nvidia/cuda:12.2.0-runtime-ubuntu22.04

directives:
preCopy:
- kind: USER
value: root
- kind: RUN
value: apt update && apt install --no-install-recommends -y libglib2.0-0 wget
value: apt update && apt install --no-install-recommends -y wget python3-pip
- kind: WORKDIR
value: /opt/nuclio
- kind: RUN
value: pip install onnxruntime
value: pip install onnxruntime opencv-python-headless pillow pyyaml
- kind: WORKDIR
value: /opt/nuclio
- kind: RUN
Expand Down
6 changes: 3 additions & 3 deletions serverless/onnx/WongKinYiu/yolov7/nuclio/function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ spec:
eventTimeout: 30s
build:
image: cvat.onnx.wongkinyiu.yolov7
baseImage: ultralytics/yolov5:latest-cpu
baseImage: ubuntu:22.04

directives:
preCopy:
- kind: USER
value: root
- kind: RUN
value: apt update && apt install --no-install-recommends -y libglib2.0-0 && apt install wget
value: apt update && apt install --no-install-recommends -y wget python3-pip
- kind: RUN
value: pip install onnxruntime
value: pip install onnxruntime opencv-python-headless pillow pyyaml
- kind: WORKDIR
value: /opt/nuclio
- kind: RUN
Expand Down
Loading