Kyo-Kai commited on
Commit
aafb237
·
verified ·
1 Parent(s): 7f36b7f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -20
Dockerfile CHANGED
@@ -27,19 +27,11 @@ WORKDIR /workspace
27
  COPY requirements.txt .
28
  RUN pip install --no-cache-dir -r requirements.txt
29
 
30
- # Clone SadTalker properly - DO NOT use --depth 1 with LFS
31
- RUN git lfs install --system && \
32
- git clone https://github.com/OpenTalker/SadTalker.git && \
33
- cd SadTalker && \
34
- git lfs pull
35
 
36
- # Verify the clone worked and install dependencies
37
- RUN cd SadTalker && \
38
- echo "=== Verifying SadTalker clone ===" && \
39
- ls -la && \
40
- echo "=== src directory ===" && \
41
- ls -la src/ && \
42
- pip install --no-cache-dir \
43
  yacs==0.1.8 \
44
  librosa==0.8.0 \
45
  numba \
@@ -52,9 +44,12 @@ RUN cd SadTalker && \
52
  imageio-ffmpeg \
53
  av
54
 
55
- # Install SadTalker properly
56
- RUN cd SadTalker && \
57
- pip install -e .
 
 
 
58
 
59
  # ---------- Real-ESRGAN install from source ----------------------------------
60
  RUN git clone https://github.com/xinntao/Real-ESRGAN.git && \
@@ -64,11 +59,8 @@ RUN git clone https://github.com/xinntao/Real-ESRGAN.git && \
64
  python setup.py develop
65
 
66
  # ---------- app --------------------------------------------------------------
67
- ENV PYTHONPATH="${PYTHONPATH}:/workspace/SadTalker:/workspace/SadTalker/src"
68
-
69
- # Final verification
70
- RUN cd SadTalker && \
71
- python -c "from sadtalker.inference import SadTalker; print('✓ SadTalker import successful')"
72
 
73
  COPY app.py .
74
  EXPOSE 7860
 
27
  COPY requirements.txt .
28
  RUN pip install --no-cache-dir -r requirements.txt
29
 
30
+ # Install SadTalker directly from GitHub via pip
31
+ RUN pip install --no-cache-dir git+https://github.com/OpenTalker/SadTalker.git
 
 
 
32
 
33
+ # Install additional dependencies that might be needed
34
+ RUN pip install --no-cache-dir \
 
 
 
 
 
35
  yacs==0.1.8 \
36
  librosa==0.8.0 \
37
  numba \
 
44
  imageio-ffmpeg \
45
  av
46
 
47
+ # Download model weights manually
48
+ RUN mkdir -p /workspace/checkpoints && \
49
+ wget -O /workspace/checkpoints/SadTalker_V0.0.2_256.safetensors \
50
+ "https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/SadTalker_V0.0.2_256.safetensors" && \
51
+ wget -O /workspace/checkpoints/SadTalker_V0.0.2_512.safetensors \
52
+ "https://github.com/OpenTalker/SadTalker/releases/download/v0.0.2-rc/SadTalker_V0.0.2_512.safetensors"
53
 
54
  # ---------- Real-ESRGAN install from source ----------------------------------
55
  RUN git clone https://github.com/xinntao/Real-ESRGAN.git && \
 
59
  python setup.py develop
60
 
61
  # ---------- app --------------------------------------------------------------
62
+ # Test the installation
63
+ RUN python -c "try: from sadtalker.inference import SadTalker; print('✓ SadTalker import successful'); except Exception as e: print('✗ Import failed:', e); import sadtalker; print('Available in sadtalker:', dir(sadtalker))"
 
 
 
64
 
65
  COPY app.py .
66
  EXPOSE 7860