未验证 提交 7cc05e80 编写于 作者: A Anastasia Yasakova 提交者: GitHub

Fix serverless functions (#5039)

* Fix some serverless functions

* Update Changelog

* Fixes
上级 88523aa7
......@@ -29,6 +29,7 @@ non-ascii paths while adding files from "Connected file share" (issue #4428)
- Project import/export with skeletons (<https://github.com/opencv/cvat/pull/4867>,
<https://github.com/opencv/cvat/pull/5004>)
- Unstable e2e restore tests (<https://github.com/opencv/cvat/pull/5010>)
- IOG and f-BRS serverless function (<https://github.com/opencv/cvat/pulls>)
### Security
- TDB
......
......@@ -37,9 +37,7 @@ spec:
- kind: ENV
value: filename=resnet101_dh256_sbd.pth
- kind: RUN
value: curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"
- kind: RUN
value: curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
value: curl -L "https://drive.google.com/uc?export=download&confirm=t&id=${fileid}" -o ${filename}
- kind: RUN
value: apt update && apt install -y libgl1-mesa-glx
- kind: RUN
......
......@@ -38,7 +38,11 @@ spec:
- kind: RUN
value: conda install -y pytorch=0.4 torchvision=0.2 -c pytorch
- kind: RUN
value: conda install -y -c conda-forge pycocotools opencv scipy
value: apt update && apt install -y libgl1-mesa-glx
- kind: RUN
value: conda install -y -c conda-forge pycocotools scipy
- kind: RUN
value: pip install opencv-python
- kind: RUN
value: git clone https://github.com/shiyinzhang/Inside-Outside-Guidance.git iog
- kind: WORKDIR
......@@ -48,11 +52,7 @@ spec:
- kind: ENV
value: filename=IOG_PASCAL_SBD.pth
- kind: RUN
value: curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"
- kind: RUN
value: echo "/download/ {print \$NF}" > confirm_code.awk
- kind: RUN
value: curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk -f confirm_code.awk ./cookie`&id=${fileid}" -o ${filename}
value: curl -L "https://drive.google.com/uc?export=download&confirm=t&id=${fileid}" -o ${filename}
- kind: WORKDIR
value: /opt/nuclio
- kind: ENTRYPOINT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册