jmanhype
commited on
Commit
Β·
d056d5c
1
Parent(s):
fc9f185
Add all required dependencies and repositories
Browse files- Dockerfile +23 -6
Dockerfile
CHANGED
@@ -25,15 +25,32 @@ RUN echo "docker start"\
|
|
25 |
&& which python \
|
26 |
&& pwd
|
27 |
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
RUN chmod -R 777 /home/user/app/MuseV
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
-
|
|
|
37 |
|
38 |
WORKDIR /home/user/app/MuseV/scripts/gradio/
|
39 |
|
|
|
25 |
&& which python \
|
26 |
&& pwd
|
27 |
|
28 |
+
# Clone repositories
|
29 |
+
RUN git clone --recursive https://github.com/TMElyralab/MuseV.git && \
|
30 |
+
cd /home/user/app && \
|
31 |
+
git clone https://github.com/TMElyralab/MMCM.git && \
|
32 |
+
git clone https://github.com/TMElyralab/diffusers.git -b main && \
|
33 |
+
git clone https://github.com/TMElyralab/controlnet_aux.git -b tme
|
34 |
+
|
35 |
RUN chmod -R 777 /home/user/app/MuseV
|
36 |
|
37 |
+
# Set up conda environment and install dependencies
|
38 |
+
RUN . /opt/conda/etc/profile.d/conda.sh && \
|
39 |
+
conda activate musev && \
|
40 |
+
pip install --no-cache-dir \
|
41 |
+
huggingface_hub==0.14.1 \
|
42 |
+
transformers==4.30.2 \
|
43 |
+
accelerate==0.20.3 \
|
44 |
+
gradio==4.12.0 \
|
45 |
+
spaces && \
|
46 |
+
cd /home/user/app/MMCM && pip install -e . && \
|
47 |
+
cd /home/user/app/diffusers && pip install -e . && \
|
48 |
+
cd /home/user/app/controlnet_aux && pip install -e .
|
49 |
+
|
50 |
+
RUN echo "source activate musev" >> ~/.bashrc
|
51 |
|
52 |
+
# Set up Python path
|
53 |
+
ENV PYTHONPATH=/home/user/app/MuseV:/home/user/app/MMCM:/home/user/app/diffusers/src:/home/user/app/controlnet_aux/src
|
54 |
|
55 |
WORKDIR /home/user/app/MuseV/scripts/gradio/
|
56 |
|