diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cd6ab0ad81b..51b5022bd7f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - \[API\] The `predefined` sorting method for task data uploads () - Allowed slashes in export filenames. () - Dataset export error with `outside` property of tracks () +- Broken logging in the TransT serverless function + () ## \[2.4.5] - 2023-06-02 ### Added diff --git a/serverless/pytorch/dschoerk/transt/nuclio/function-gpu.yaml b/serverless/pytorch/dschoerk/transt/nuclio/function-gpu.yaml index 65a079b33d96..685875bef8e6 100644 --- a/serverless/pytorch/dschoerk/transt/nuclio/function-gpu.yaml +++ b/serverless/pytorch/dschoerk/transt/nuclio/function-gpu.yaml @@ -22,42 +22,28 @@ spec: directives: preCopy: - - kind: ENV - value: PATH="/root/miniconda3/bin:${PATH}" - - kind: ARG - value: PATH="/root/miniconda3/bin:${PATH}" - kind: RUN - value: rm -f /etc/apt/sources.list.d/cuda.list /etc/apt/sources.list.d/nvidia-ml.list - - kind: RUN - value: apt update && apt install -y --no-install-recommends wget git ca-certificates libglib2.0-0 libgl1 && rm -rf /var/lib/apt/lists/* # libxrender1 libxext6 - - kind: RUN - value: wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && - chmod +x Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b && - rm -f Miniconda3-latest-Linux-x86_64.sh + value: |- + apt update \ + && apt install -y --no-install-recommends \ + git \ + ca-certificates \ + python-is-python3 \ + python3 \ + python3-pip \ + && rm -rf /var/lib/apt/lists/* - kind: WORKDIR value: /opt/nuclio - kind: RUN - value: conda create -y -n transt python=3.8 - - kind: SHELL - value: '["conda", "run", "-n", "transt", "/bin/bash", "-c"]' - - kind: RUN - value: git clone https://github.com/dschoerk/TransT trans-t - - - kind: RUN - value: pip install torch==1.7.0+cu110 torchvision==0.8.1+cu110 -f https://download.pytorch.org/whl/torch_stable.html - - - kind: RUN - value: pip install jsonpickle opencv-python - - - kind: RUN - value: wget --no-check-certificate 'https://drive.google.com/uc?id=1Pq0sK-9jmbLAVtgB9-dPDc2pipCxYdM5' -O /transt.pth - - - kind: RUN - value: apt remove -y git wget + value: git clone --depth 1 --branch v1.0 https://github.com/dschoerk/TransT trans-t - kind: RUN - value: cd trans-t - - kind: ENTRYPOINT - value: '["conda", "run", "-n", "transt"]' + value: |- + pip install \ + jsonpickle opencv-python-headless \ + torch==1.7.1+cu110 torchvision==0.8.2+cu110 \ + --extra-index-url https://download.pytorch.org/whl/cu110 + - kind: ADD + value: https://drive.google.com/uc?id=1Pq0sK-9jmbLAVtgB9-dPDc2pipCxYdM5 /transt.pth triggers: myHttpTrigger: diff --git a/serverless/pytorch/dschoerk/transt/nuclio/function.yaml b/serverless/pytorch/dschoerk/transt/nuclio/function.yaml index 4ed153cb29e7..718eb383e87c 100644 --- a/serverless/pytorch/dschoerk/transt/nuclio/function.yaml +++ b/serverless/pytorch/dschoerk/transt/nuclio/function.yaml @@ -22,42 +22,28 @@ spec: directives: preCopy: - - kind: ENV - value: PATH="/root/miniconda3/bin:${PATH}" - - kind: ARG - value: PATH="/root/miniconda3/bin:${PATH}" - kind: RUN - value: rm -f /etc/apt/sources.list.d/cuda.list /etc/apt/sources.list.d/nvidia-ml.list - - kind: RUN - value: apt update && apt install -y --no-install-recommends wget git ca-certificates libglib2.0-0 libgl1 && rm -rf /var/lib/apt/lists/* # libxrender1 libxext6 - - kind: RUN - value: wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && - chmod +x Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b && - rm -f Miniconda3-latest-Linux-x86_64.sh + value: |- + apt update \ + && apt install -y --no-install-recommends \ + git \ + ca-certificates \ + python-is-python3 \ + python3 \ + python3-pip \ + && rm -rf /var/lib/apt/lists/* - kind: WORKDIR value: /opt/nuclio - - kind: RUN - value: conda create -y -n transt python=3.8 - - kind: SHELL - value: '["conda", "run", "-n", "transt", "/bin/bash", "-c"]' - kind: RUN value: git clone --depth 1 --branch v1.0 https://github.com/dschoerk/TransT trans-t - - - kind: RUN - value: pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html - - - kind: RUN - value: pip install jsonpickle opencv-python - - - kind: RUN - value: wget --no-check-certificate 'https://drive.google.com/uc?id=1Pq0sK-9jmbLAVtgB9-dPDc2pipCxYdM5' -O /transt.pth - - - kind: RUN - value: apt remove -y git wget - kind: RUN - value: cd trans-t - - kind: ENTRYPOINT - value: '["conda", "run", "-n", "transt"]' + value: |- + pip install \ + jsonpickle opencv-python-headless \ + torch==1.7.1+cpu torchvision==0.8.2+cpu \ + --extra-index-url https://download.pytorch.org/whl/cpu + - kind: ADD + value: https://drive.google.com/uc?id=1Pq0sK-9jmbLAVtgB9-dPDc2pipCxYdM5 /transt.pth triggers: myHttpTrigger: