From adad3d7ecfa71b16197953897fb095e78606de75 Mon Sep 17 00:00:00 2001
From: Christof Kaufmann <christof.kaufmann@hs-bochum.de>
Date: Mon, 18 Nov 2024 14:56:21 +0100
Subject: [PATCH] Switch from fastai to conda-forge for OpenCV

---
 keras3-cpu/Dockerfile  | 4 ++--
 keras3-gpu/Dockerfile  | 4 ++--
 pytorch-gpu/Dockerfile | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/keras3-cpu/Dockerfile b/keras3-cpu/Dockerfile
index 15e0a7b..6223322 100644
--- a/keras3-cpu/Dockerfile
+++ b/keras3-cpu/Dockerfile
@@ -122,8 +122,8 @@ RUN mamba install --yes \
     'jupyter-archive' \
     'jupyterlab-git' \
     'jupyter-resource-usage' \
-    # install opencv via fastai, headless version not available in conda-forge
-    'fastai::opencv-python-headless' && \
+    # install opencv headless version
+    'py-opencv=*=headless*' && \
     printf '%s\n' \
            "" \
            "# track CPU usage, prevent known bug with prometheus, set default limits if not set by MEM_LIMIT and CPU_LIMIT" \
diff --git a/keras3-gpu/Dockerfile b/keras3-gpu/Dockerfile
index b5deea1..d3bd17a 100644
--- a/keras3-gpu/Dockerfile
+++ b/keras3-gpu/Dockerfile
@@ -74,8 +74,8 @@ RUN mamba install --yes \
     'jupyterlab_execute_time' \
     'jupyter-archive' \
     'jupyter-resource-usage' \
-    # install opencv via fastai, headless version not available in conda-forge
-    'fastai::opencv-python-headless' && \
+    # install opencv headless version
+    'py-opencv=*=headless*' && \
     printf '%s\n' \
            "" \
            "# track CPU usage, prevent known bug with prometheus, set default limits if not set by MEM_LIMIT and CPU_LIMIT" \
diff --git a/pytorch-gpu/Dockerfile b/pytorch-gpu/Dockerfile
index 5d1ff72..1dbe067 100644
--- a/pytorch-gpu/Dockerfile
+++ b/pytorch-gpu/Dockerfile
@@ -72,8 +72,8 @@ RUN mamba install --yes --no-update-deps \
     'jupyterlab_execute_time' \
     'jupyter-archive' \
     'jupyter-resource-usage' \
-    # install opencv via fastai, headless version not available in conda-forge
-    'fastai::opencv-python-headless' && \
+    # install opencv headless version
+    'py-opencv=*=headless*' && \
     pip install --no-cache-dir --extra-index-url 'https://pypi.nvidia.com' --extra-index-url 'https://download.pytorch.org/whl/cu118' \
     'transformers' \
     'diffusers' \
-- 
GitLab