forked from kenwaytis/faster-SadTalker-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 755 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM paidax/dev-containers:cuda11.6-py3.8
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update -y && \
apt install -y \
ffmpeg && \
apt clean && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/Winfredy/SadTalker.git && \
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113 && \
cd SadTalker && \
mkdir checkpoints && \
mkdir -p gfpgan/weights && \
pip install -r requirements.txt && \
pip install \
fastapi[all] \
onnxruntime-gpu \
loguru && \
rm -rf /root/.cache/pip/* # 清除pip缓存
RUN pip install httpcore==0.15
WORKDIR /home/SadTalker
COPY main.py sadtalker_default.jpeg ./
COPY src/ src/