2023-03-31 13:58:46 +00:00
|
|
|
FROM pytorch/pytorch:1.13.1-cuda11.6-cudnn8-devel
|
2020-01-21 02:50:51 +00:00
|
|
|
|
|
|
|
RUN apt update && apt install -y ffmpeg libsm6 libxrender-dev
|
|
|
|
RUN pip install Cython
|
|
|
|
RUN pip install opencv-python cython_bbox motmetrics numba matplotlib sklearn
|
2023-03-31 13:58:46 +00:00
|
|
|
RUN pip install lap
|
2023-04-05 15:16:28 +00:00
|
|
|
RUN pip install umap-learn
|
|
|
|
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
|
|
|
|
RUN pip install bokeh
|
|
|
|
RUN pip install ipykernel
|
|
|
|
RUN pip install ipython
|
|
|
|
# Vscode bug: https://github.com/microsoft/vscode-jupyter/issues/8552
|
2023-04-21 15:22:25 +00:00
|
|
|
# RUN pip install ipywidgets==7.7.2
|
|
|
|
RUN pip install ipywidgets
|
2023-04-05 15:16:28 +00:00
|
|
|
#RUN pip install panel jupyter_bokeh
|
|
|
|
|
2023-05-01 13:56:14 +00:00
|
|
|
# from https://github.com/KaiyangZhou/deep-person-reid/blob/master/Dockerfile
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
ENV TZ=Europe/Amsterdam
|
|
|
|
RUN apt update && apt install -y python3-opencv ca-certificates python3-dev git wget sudo ninja-build
|
|
|
|
RUN git clone https://github.com/KaiyangZhou/deep-person-reid/ /deep-person-reid
|
|
|
|
WORKDIR /deep-person-reid
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
RUN python setup.py develop
|
|
|
|
|
2023-04-05 15:16:28 +00:00
|
|
|
# for bokeh
|
|
|
|
EXPOSE 5006
|
|
|
|
|
2023-05-01 13:56:14 +00:00
|
|
|
ENV TORCH_HOME=/Towards-Realtime-MOT/.torch
|
|
|
|
WORKDIR /Towards-Realtime-MOT
|
2023-04-05 15:16:28 +00:00
|
|
|
CMD python -m ipykernel_launcher -f $DOCKERNEL_CONNECTION_FILE
|