-
Notifications
You must be signed in to change notification settings - Fork 43
/
Dockerfile
68 lines (59 loc) · 2.86 KB
/
Dockerfile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM nvidia/cuda:11.6.0-devel-ubuntu20.04
RUN echo "" && \
echo "-================================================================-" && \
echo "-================================================================-" && \
echo "" && \
echo "This dockerfile is GPU only, and needs you to nominate the GPUs to" && \
echo "run. The common form is 'docker build . -t progrockdiffusion' and" && \
echo "'docker run progrockdiffusion --gpus all'" && \
echo "" && \
echo "-================================================================-" && \
echo "-================================================================-" && \
echo "" && \
echo "Updating the base" && \
apt update && \
apt update && \
apt upgrade -y && \
apt install git -y && \
apt install nano -y && \
apt install curl -y && \
apt install wget -y
# disable text prompts regarding timezone during python installation
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
RUN echo "Updating apt-get, installing OS basics" && \
apt-get -y update && \
apt-get install -y software-properties-common && \
apt-get -y update && \
add-apt-repository universe
RUN echo "!! Installing python 3 and pip" && \
apt-get -y install python3 && \
apt-get -y install python3-pip
RUN echo "!! Pulling the various repos" && \
git clone https://github.com/lowfuel/progrockdiffusion.git && \
cd progrockdiffusion && \
git clone https://github.com/crowsonkb/guided-diffusion && \
git clone https://github.com/openai/CLIP.git && \
git clone https://github.com/assafshocher/ResizeRight.git && \
git clone https://github.com/facebookresearch/SLIP.git && \
git clone https://github.com/CompVis/latent-diffusion.git && \
git clone https://github.com/CompVis/taming-transformers
RUN echo "!! pip installing the repos" && \
cd progrockdiffusion && \
pip -V && \
pip install opencv-python && \
pip install -e ./CLIP && \
pip install -e ./guided-diffusion && \
pip install -e ./taming-transformers && \
pip install lpips datetime timm
RUN echo "!! install torch, torchvision, torchaudio, imagemagic, ffmpeg, misc" && \
pip install torch==1.10.2+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html --no-cache && \
pip install torchvision==0.11.3+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html && \
pip install torchaudio==0.10.2+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html && \
apt-get install ffmpeg libsm6 libxext6 -y && \
apt install imagemagick caca-utils -y && \
pip install ipywidgets omegaconf pytorch_lightning einops && \
pip install matplotlib pandas
RUN echo "!! Run a single fake frame to get the default model downloaded and baked into the image" && \
cd progrockdiffusion && \
python3 prd.py
# CMD /bin/bash