Copied initial tools.
This commit is contained in:
42
Dockerfile
Normal file
42
Dockerfile
Normal file
@ -0,0 +1,42 @@
|
||||
FROM nvcr.io/nvidia/tensorflow:22.08-tf2-py3
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ENV LANG C.UTF-8
|
||||
ENV LC_ALL C.UTF-8
|
||||
WORKDIR /
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends feh
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends python3-opencv
|
||||
RUN pip uninstall -y opencv-python && pip install --no-cache "opencv-python<4.3"
|
||||
|
||||
# Show matplotlib images
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends python3-tk
|
||||
|
||||
# Update pip to allow installation of skelda in editable mode
|
||||
RUN pip3 install --upgrade --no-cache-dir pip
|
||||
|
||||
# Install pytorch
|
||||
RUN pip3 install --upgrade --no-cache-dir "torch<2.0"
|
||||
RUN pip3 install --upgrade --no-cache-dir "torchvision<0.15"
|
||||
|
||||
# Install MMPose
|
||||
RUN pip3 install --upgrade --no-cache-dir openmim
|
||||
RUN mim install mmengine
|
||||
RUN mim install "mmpose>=1.1.0"
|
||||
# Fix an error when importing mmpose
|
||||
RUN pip3 install --upgrade --no-cache-dir numpy scipy
|
||||
RUN git clone --depth=1 --branch=main https://github.com/open-mmlab/mmpose.git
|
||||
|
||||
# Download pretrained model
|
||||
COPY scripts/utils_2d_pose.py /
|
||||
RUN python3 -c "from utils_2d_pose import load_model; load_model();"
|
||||
RUN python3 -c "from utils_2d_pose import load_wb_model; load_wb_model();"
|
||||
|
||||
# Fix an undefined symbol error with ompi
|
||||
RUN echo "ldconfig" >> ~/.bashrc
|
||||
|
||||
COPY ./skelda/ /skelda/
|
||||
RUN pip3 install --no-cache-dir -e /skelda/
|
||||
|
||||
WORKDIR /SimplePoseTriangulation/
|
||||
CMD ["/bin/bash"]
|
||||
Reference in New Issue
Block a user