adfly450 commited on
Commit
3be88f8
·
verified ·
1 Parent(s): 198b037

Update Dockerfile.nvidia

Browse files
Files changed (1) hide show
  1. Dockerfile.nvidia +3 -10
Dockerfile.nvidia CHANGED
@@ -17,6 +17,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y \
17
  unzip \
18
  && rm -rf /var/lib/apt/lists/*
19
 
 
 
 
20
  # Download and extract buffalo_l model for InsightFace
21
  RUN wget https://github.com/deepinsight/insightface/releases/download/v0.7/buffalo_l.zip -O /tmp/buffalo_l.zip && \
22
  mkdir -p /root/.insightface/models/buffalo_l && \
@@ -24,16 +27,6 @@ RUN wget https://github.com/deepinsight/insightface/releases/download/v0.7/buffa
24
  unzip /tmp/buffalo_l.zip && \
25
  rm -f /tmp/buffalo_l.zip
26
 
27
- # Install TensorRT via NVIDIA repository (more reliable)
28
- RUN apt update && apt install -y \
29
- gnupg2 \
30
- curl \
31
- lsb-release \
32
- && curl -sSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/nvidia-cuda-toolkit_11.8.0-1_amd64.deb -o nvidia-cuda-toolkit_11.8.0-1_amd64.deb \
33
- && dpkg -i nvidia-cuda-toolkit_11.8.0-1_amd64.deb \
34
- && apt-get install -f -y \
35
- && rm nvidia-cuda-toolkit_11.8.0-1_amd64.deb
36
-
37
  # Install the Refacer repository and dependencies
38
  RUN git clone https://github.com/xaviviro/refacer && \
39
  cd refacer && \
 
17
  unzip \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
+ # Install ffmpeg-python
21
+ RUN pip install ffmpeg-python
22
+
23
  # Download and extract buffalo_l model for InsightFace
24
  RUN wget https://github.com/deepinsight/insightface/releases/download/v0.7/buffalo_l.zip -O /tmp/buffalo_l.zip && \
25
  mkdir -p /root/.insightface/models/buffalo_l && \
 
27
  unzip /tmp/buffalo_l.zip && \
28
  rm -f /tmp/buffalo_l.zip
29
 
 
 
 
 
 
 
 
 
 
 
30
  # Install the Refacer repository and dependencies
31
  RUN git clone https://github.com/xaviviro/refacer && \
32
  cd refacer && \