From b2b6f629d88f353fa2c08714de3926703b3bca26 Mon Sep 17 00:00:00 2001 From: Peter Schroedl Date: Tue, 1 Oct 2024 23:48:35 +0000 Subject: [PATCH 1/2] pin sam2 repo to commit before renaming and path changes --- runner/docker/Dockerfile.segment_anything_2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/docker/Dockerfile.segment_anything_2 b/runner/docker/Dockerfile.segment_anything_2 index 0c6bc836..bcff0716 100644 --- a/runner/docker/Dockerfile.segment_anything_2 +++ b/runner/docker/Dockerfile.segment_anything_2 @@ -1,6 +1,6 @@ ARG BASE_IMAGE=livepeer/ai-runner:base FROM ${BASE_IMAGE} -RUN pip install --no-cache-dir torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 xformers==0.0.27 git+https://github.com/facebookresearch/segment-anything-2.git@main#egg=sam-2 +RUN pip install --no-cache-dir torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 xformers==0.0.27 git+https://github.com/facebookresearch/segment-anything-2.git@0f6515ae853c40420ea8e3dd250f8031bbf03023#egg=sam-2 CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "0.0.0.0", "--port", "8000"] From aba3748511563e43194af191e0896f05859189fa Mon Sep 17 00:00:00 2001 From: Peter Schroedl Date: Tue, 1 Oct 2024 23:54:16 +0000 Subject: [PATCH 2/2] update repo dependency to match upstream renaming --- runner/docker/Dockerfile.segment_anything_2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/docker/Dockerfile.segment_anything_2 b/runner/docker/Dockerfile.segment_anything_2 index bcff0716..26b75658 100644 --- a/runner/docker/Dockerfile.segment_anything_2 +++ b/runner/docker/Dockerfile.segment_anything_2 @@ -1,6 +1,6 @@ ARG BASE_IMAGE=livepeer/ai-runner:base FROM ${BASE_IMAGE} -RUN pip install --no-cache-dir torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 xformers==0.0.27 git+https://github.com/facebookresearch/segment-anything-2.git@0f6515ae853c40420ea8e3dd250f8031bbf03023#egg=sam-2 +RUN pip install --no-cache-dir torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 xformers==0.0.27 git+https://github.com/facebookresearch/sam2.git@0f6515ae853c40420ea8e3dd250f8031bbf03023#egg=sam-2 CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "0.0.0.0", "--port", "8000"]