gadhalevy commited on
Commit
a3f0c24
·
1 Parent(s): adcdf4f
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -27,8 +27,9 @@ RUN pip install --no-cache-dir --upgrade pip setuptools wheel
27
  # Install NumPy with version that satisfies all dependencies
28
  RUN pip install --no-cache-dir "numpy>=1.23.5,<1.24"
29
 
30
- # CPU-only PyTorch (install early to avoid memory issues)
31
- RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
 
32
 
33
  # Core dependencies - install in smaller batches
34
  RUN pip install --no-cache-dir scipy==1.11.3
@@ -79,4 +80,4 @@ RUN cd /app/SadTalker && \
79
  EXPOSE 8501
80
  CMD ["streamlit", "run", "avatar_streamlit.py", "--server.port=8501", "--server.address=0.0.0.0"]
81
 
82
- # FORCE_REBUILD: 2025-01-04-v4
 
27
  # Install NumPy with version that satisfies all dependencies
28
  RUN pip install --no-cache-dir "numpy>=1.23.5,<1.24"
29
 
30
+ # CPU-only PyTorch (use version compatible with TTS library)
31
+ # PyTorch 2.6+ breaks TTS due to weights_only=True default, so use 2.5.1
32
+ RUN pip install --no-cache-dir torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cpu
33
 
34
  # Core dependencies - install in smaller batches
35
  RUN pip install --no-cache-dir scipy==1.11.3
 
80
  EXPOSE 8501
81
  CMD ["streamlit", "run", "avatar_streamlit.py", "--server.port=8501", "--server.address=0.0.0.0"]
82
 
83
+ # FORCE_REBUILD: 2025-01-04-v5