From f1b4af4785755a547a583f144beeadf139b45ac4 Mon Sep 17 00:00:00 2001 From: Jayam Srivastava Date: Thu, 27 Aug 2026 18:21:55 +0530 Subject: [PATCH 1/3] fix: upgrade torch runtime for text model loading --- backend/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/requirements.txt b/backend/requirements.txt index 4be2aa8..31b6475 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -4,8 +4,8 @@ python-multipart==0.0.20 email-validator==2.3.0 firebase-admin==7.1.0 transformers==4.57.1 -torch==2.2.2+cpu -torchvision==0.17.2+cpu +torch==2.6.0+cpu +torchvision==0.21.0+cpu opencv-python-headless==4.11.0.86 facenet-pytorch==2.6.0 timm==1.0.19 From 159d429f0ae57c6599c115f0c898159ee8245116 Mon Sep 17 00:00:00 2001 From: Jayam Srivastava Date: Thu, 27 Aug 2026 18:25:06 +0530 Subject: [PATCH 2/3] fix: avoid facenet torch dependency conflict --- backend/requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/requirements.txt b/backend/requirements.txt index 31b6475..f4d937b 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -7,7 +7,6 @@ transformers==4.57.1 torch==2.6.0+cpu torchvision==0.21.0+cpu opencv-python-headless==4.11.0.86 -facenet-pytorch==2.6.0 timm==1.0.19 Pillow==10.2.0 numpy==1.26.4 From 07ea13818c030f7ef3fec960552d5dc90edaeb39 Mon Sep 17 00:00:00 2001 From: Jayam Srivastava Date: Thu, 27 Aug 2026 18:25:16 +0530 Subject: [PATCH 3/3] fix: install facenet-pytorch without conflicting torch constraint --- backend/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 734a7cb..3706205 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -16,7 +16,8 @@ RUN apt-get update \ COPY requirements.txt ./requirements.txt # Install CPU-only PyTorch wheels so the container does not pull CUDA runtimes. -RUN pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt +RUN pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt \ + && pip install --no-deps facenet-pytorch==2.6.0 COPY . .