deepsafe commited on
Commit
67556a3
·
verified ·
1 Parent(s): 92f1665

sync from GitHub (5cbbb56)

Browse files
image/universal/requirements.txt CHANGED
@@ -4,7 +4,8 @@ pillow
4
  pydantic
5
  numpy
6
  # torch and torchvision installed separately in Dockerfile with CUDA support
7
- # torch==2.5.1+cu121 (see Dockerfile)
8
- # torchvision==0.20.1+cu121 (see Dockerfile)
 
9
  ftfy
10
  regex
 
4
  pydantic
5
  numpy
6
  # torch and torchvision installed separately in Dockerfile with CUDA support
7
+ # DO NOT add torch or torchvision pins here -- they are installed with CUDA
8
+ # support in the Dockerfile. Adding torch==X here would downgrade the install.
9
+ torch>=2.5.1
10
  ftfy
11
  regex
video/dfd-fcg/app.py CHANGED
@@ -156,7 +156,7 @@ def _load_models() -> None:
156
  logger.info(
157
  "Device: cuda (%s, %.1f GB VRAM)",
158
  torch.cuda.get_device_name(0),
159
- torch.cuda.get_device_properties(0).total_mem
160
  / 1024**3,
161
  )
162
  else:
@@ -288,7 +288,7 @@ def _gpu_health_info() -> dict:
288
  torch.cuda.memory_allocated(0) / 1024**2
289
  ),
290
  "vram_total_mb": round(
291
- torch.cuda.get_device_properties(0).total_mem
292
  / 1024**2
293
  ),
294
  }
 
156
  logger.info(
157
  "Device: cuda (%s, %.1f GB VRAM)",
158
  torch.cuda.get_device_name(0),
159
+ torch.cuda.get_device_properties(0).total_memory
160
  / 1024**3,
161
  )
162
  else:
 
288
  torch.cuda.memory_allocated(0) / 1024**2
289
  ),
290
  "vram_total_mb": round(
291
+ torch.cuda.get_device_properties(0).total_memory
292
  / 1024**2
293
  ),
294
  }
video/fake-stormer/Dockerfile CHANGED
@@ -1,9 +1,10 @@
1
- FROM pytorch/pytorch:1.8.0-cuda11.1-cudnn8-devel
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies
6
- RUN apt-get update && apt-get install -y \
 
7
  libgl1 \
8
  libglib2.0-0 \
9
  libsm6 \
 
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
6
+ RUN (apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub 2>/dev/null || true) && \
7
+ apt-get update && apt-get install -y \
8
  libgl1 \
9
  libglib2.0-0 \
10
  libsm6 \