-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
60 lines (41 loc) · 1.29 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
FROM pytorch/pytorch:1.12.1-cuda11.3-cudnn8-runtime
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y python3.8 python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" \
apt-get install -y \
git \
wget \
python3-pip \
python3-opencv \
unzip \
sudo \
vim
## As per installation instructions @ https://pytorch.org/
#RUN pip3 install torch==1.10.1+cu113 \
# torchvision==0.11.2+cu113 \
# torchaudio==0.10.1+cu113 \
# -f https://download.pytorch.org/whl/cu113/torch_stable.html
RUN pip install tensorboardX \
gdown pycocotools pipenv \
ptflops wget pandas \
pycocotools numpy opencv-python \
tqdm tensorboard tensorboardX \
pyyaml webcolors jsonlines \
gradio seaborn gevent gunicorn flask \
wandb pyyaml webcolors tensorboard matplotlib \
scipy scikit-learn jupyter
RUN pip install torch_tb_profiler compressai
RUN pip install apache-tvm
ARG UID
ARG GID
ARG USER
ARG GROUP
RUN groupadd -g $GID $GROUP
RUN useradd -r -s /bin/false -g $GROUP -G sudo -u $UID $USER
RUN mkdir /home/$USER
RUN chmod -R 777 /home/$USER
CMD /bin/bash
#COPY requirements.txt ./requirements.txt
#RUN pip install -r requirements.txt