Phil Sobrepena commited on
Commit
d8ac5d3
·
1 Parent(s): c64b351

docker changes

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -14
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
2
 
3
- WORKDIR /code/MMAudio
 
 
 
4
 
5
  # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
@@ -15,15 +18,15 @@ RUN apt-get update && apt-get install -y \
15
  libsndfile1 \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
- # Ensure we're using Python 3.10
19
- RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
20
 
21
- # Install pip for Python 3.10 and upgrade it
22
- RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 && \
23
- pip3 install --no-cache-dir --upgrade pip setuptools wheel
24
 
25
- # Install numpy first, before anything else
26
- RUN pip3 install --no-cache-dir numpy==1.24.3
27
 
28
  # Install PyTorch and related packages first (as recommended in README)
29
  RUN pip3 install --no-cache-dir \
@@ -45,11 +48,8 @@ RUN pip3 install --no-cache-dir -e .
45
  # timm>=0.9.12 \
46
  # requests>=2.31.0
47
 
48
- # Clone MMAudio
49
- # RUN git clone https://github.com/hkchengrex/MMAudio.git
50
-
51
  # Set working directory to MMAudio
52
- # WORKDIR /code/MMAudio
53
 
54
  # Install other dependencies
55
  # RUN pip3 install --no-cache-dir -r requirements.txt
@@ -57,11 +57,12 @@ RUN pip3 install --no-cache-dir -e .
57
  # Install MMAudio last (as recommended in README)
58
  # RUN pip3 install -e .
59
 
 
60
  # Create output directory
61
  RUN mkdir -p output/gradio && chmod 777 output/gradio
62
 
63
- # Copy app.py (we'll use our own version instead of the one from the repo)
64
- COPY app.py .
65
 
66
  # Set environment variables for Hugging Face Spaces
67
  ENV PYTHONUNBUFFERED=1
 
1
  FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
2
 
3
+ # Clone MMAudio
4
+ RUN git clone https://huggingface.co/autophil/MMAudio_SS
5
+
6
+ WORKDIR /code/MMAudio_SS
7
 
8
  # Install system dependencies
9
  RUN apt-get update && apt-get install -y \
 
18
  libsndfile1 \
19
  && rm -rf /var/lib/apt/lists/*
20
 
21
+ # # Ensure we're using Python 3.10
22
+ # RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
23
 
24
+ # # Install pip for Python 3.10 and upgrade it
25
+ # RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 && \
26
+ # pip3 install --no-cache-dir --upgrade pip setuptools wheel
27
 
28
+ # # Install numpy first, before anything else
29
+ # RUN pip3 install --no-cache-dir numpy==1.24.3
30
 
31
  # Install PyTorch and related packages first (as recommended in README)
32
  RUN pip3 install --no-cache-dir \
 
48
  # timm>=0.9.12 \
49
  # requests>=2.31.0
50
 
 
 
 
51
  # Set working directory to MMAudio
52
+ WORKDIR /code/MMAudio_SS
53
 
54
  # Install other dependencies
55
  # RUN pip3 install --no-cache-dir -r requirements.txt
 
57
  # Install MMAudio last (as recommended in README)
58
  # RUN pip3 install -e .
59
 
60
+
61
  # Create output directory
62
  RUN mkdir -p output/gradio && chmod 777 output/gradio
63
 
64
+ # # Copy app.py (we'll use our own version instead of the one from the repo)
65
+ # COPY app.py .
66
 
67
  # Set environment variables for Hugging Face Spaces
68
  ENV PYTHONUNBUFFERED=1