From c8c40df37f318c11f8bb56221269464b10b7eb17 Mon Sep 17 00:00:00 2001 From: Adam Teuscher <43582901+amteusch@users.noreply.github.com> Date: Sun, 9 Oct 2022 09:52:34 -0600 Subject: [PATCH] Fixes some serverless functions (HRNET, IOG, f-BRS) (#4944) * Update curl command for Google Drive weights and adjust yaml files (#4736) * update changelog Co-authored-by: Boris Sekachev --- CHANGELOG.md | 3 ++- serverless/pytorch/saic-vul/hrnet/nuclio/function-gpu.yaml | 4 ++++ serverless/pytorch/shiyinzhang/iog/nuclio/function.yaml | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94c100c3..957a3b54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,12 +31,13 @@ non-ascii paths while adding files from "Connected file share" (issue #4428) ) - Shape color is not changed on canvas after changing a label () - Unstable e2e restore tests () -- IOG and f-BRS serverless function () +- IOG and f-BRS serverless function () - Invisible label item in label constructor when label color background is white, or close to it () - Fixed cvat-core ESlint problems () - Fixed task creation with non-local files via the SDK/CLI () +- HRNET serverless function () - A trailing slash in hostname does't allow SDK to send some requests () diff --git a/serverless/pytorch/saic-vul/hrnet/nuclio/function-gpu.yaml b/serverless/pytorch/saic-vul/hrnet/nuclio/function-gpu.yaml index e3039b77..d8471a3f 100644 --- a/serverless/pytorch/saic-vul/hrnet/nuclio/function-gpu.yaml +++ b/serverless/pytorch/saic-vul/hrnet/nuclio/function-gpu.yaml @@ -32,8 +32,12 @@ spec: value: apt-get update && apt-get install software-properties-common -y - kind: RUN value: add-apt-repository ppa:deadsnakes/ppa + - kind: RUN + value: apt remove python* -y - kind: RUN value: apt-get update && apt-get install -y --no-install-recommends build-essential git curl libglib2.0-0 software-properties-common python3 python3.6-dev python3-pip python3-tk + - kind: RUN + value: ln -s /usr/bin/pip3 /usr/local/bin/pip && ln -s /usr/bin/python3 /usr/bin/python - kind: RUN value: pip3 install --upgrade pip - kind: WORKDIR diff --git a/serverless/pytorch/shiyinzhang/iog/nuclio/function.yaml b/serverless/pytorch/shiyinzhang/iog/nuclio/function.yaml index 52da136c..20e10ab1 100644 --- a/serverless/pytorch/shiyinzhang/iog/nuclio/function.yaml +++ b/serverless/pytorch/shiyinzhang/iog/nuclio/function.yaml @@ -14,7 +14,7 @@ metadata: spec: description: Interactive Object Segmentation with Inside-Outside Guidance - runtime: 'python:3.6' + runtime: 'python:3.9' handler: main:handler eventTimeout: 30s env: @@ -30,13 +30,13 @@ spec: - kind: WORKDIR value: /opt/nuclio - kind: RUN - value: conda create -y -n iog python=3.6 + value: conda create -y -n iog python=3.9 - kind: SHELL value: '["conda", "run", "-n", "iog", "/bin/bash", "-c"]' - kind: RUN value: conda install -y -c anaconda curl - kind: RUN - value: conda install -y pytorch=0.4 torchvision=0.2 -c pytorch + value: conda install -y pytorch torchvision -c pytorch - kind: RUN value: apt update && apt install -y libgl1-mesa-glx - kind: RUN