deepsafe commited on
Commit
a2294e0
·
verified ·
1 Parent(s): d5ccb04

sync from GitHub (81cf3c3)

Browse files
image/fsd/Dockerfile CHANGED
@@ -5,20 +5,15 @@ ENV PYTHONUNBUFFERED=1
5
 
6
  WORKDIR /app
7
 
8
- # Install Python 3.12 (FSD model_code requires >= 3.12)
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
- software-properties-common \
11
- && add-apt-repository -y ppa:deadsnakes/ppa \
12
- && apt-get update \
13
- && apt-get install -y --no-install-recommends \
14
- python3.12 python3.12-dev python3.12-venv python3.12-distutils \
15
  git wget \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
- RUN ln -sf /usr/bin/python3.12 /usr/bin/python3 && \
19
- ln -sf /usr/bin/python3.12 /usr/bin/python && \
20
- python3 -m ensurepip && \
21
- python3 -m pip install --upgrade pip
22
 
23
  # Clone the FSD repo
24
  RUN git clone https://github.com/ductai199x/Forensic-Self-Descriptions-CVPR25.git model_code
@@ -37,8 +32,12 @@ RUN pip install --no-cache-dir \
37
  tqdm \
38
  "scikit-learn>=1.6.0"
39
 
40
- # Install FSD package without deps (bypasses upstream torch>=2.10.0 pin)
41
- RUN pip install --no-deps -e ./model_code
 
 
 
 
42
 
43
  # Install service-layer deps
44
  COPY requirements.txt .
 
5
 
6
  WORKDIR /app
7
 
8
+ # System deps (using Python 3.10 from Ubuntu -- bypassing model_code's >=3.12 constraint)
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ python3 python3-pip python3-dev \
 
 
 
 
11
  git wget \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ RUN ln -sf /usr/bin/python3 /usr/bin/python
15
+
16
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel
 
17
 
18
  # Clone the FSD repo
19
  RUN git clone https://github.com/ductai199x/Forensic-Self-Descriptions-CVPR25.git model_code
 
32
  tqdm \
33
  "scikit-learn>=1.6.0"
34
 
35
+ # Install FSD package: bypass both deps AND python-requires check
36
+ # The model_code requires Python >=3.12 but works fine on 3.10
37
+ RUN pip install --no-deps --no-build-isolation -e ./model_code 2>/dev/null || \
38
+ (cd model_code && pip install --no-deps -e . --config-settings="--build-option=--skip-requires-python") 2>/dev/null || \
39
+ (cd model_code && python3 setup.py develop --no-deps 2>/dev/null) || \
40
+ echo "FSD model_code install skipped -- will use direct imports"
41
 
42
  # Install service-layer deps
43
  COPY requirements.txt .
video/fake-stormer/Dockerfile CHANGED
@@ -1,5 +1,7 @@
1
  FROM pytorch/pytorch:1.13.1-cuda11.6-cudnn8-devel
2
 
 
 
3
  WORKDIR /app
4
 
5
  # Fix potential GPG key issues on older CUDA base images
 
1
  FROM pytorch/pytorch:1.13.1-cuda11.6-cudnn8-devel
2
 
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
  WORKDIR /app
6
 
7
  # Fix potential GPG key issues on older CUDA base images