Closed tom-doerr closed 2 years ago
Hi @tom-doerr , can you provide steps to reproduce this issue?
Dockerfile
Dockerfile:
# Copyright 2019 The MediaPipe Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM nvidia/cuda:10.1-cudnn8-devel-ubuntu18.04
MAINTAINER mediapipe@google.com
WORKDIR /io WORKDIR /mediapipe
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \ build-essential \ gcc-8 g++-8 \ ca-certificates \ curl \ ffmpeg \ git \ wget \ unzip \ python3-dev \ python3-opencv \ python3-pip \ libopencv-core-dev \ libopencv-highgui-dev \ libopencv-imgproc-dev \ libopencv-video-dev \ libopencv-calib3d-dev \ libopencv-features2d-dev \ software-properties-common && \ add-apt-repository -y ppa:openjdk-r/ppa && \ apt-get update && apt-get install -y openjdk-8-jdk && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-8 RUN pip3 install --upgrade setuptools RUN pip3 install wheel RUN pip3 install future RUN pip3 install six==1.14.0 RUN pip3 install tensorflow==1.14.0 RUN pip3 install tf_slim
RUN ln -s /usr/bin/python3 /usr/bin/python
ARG BAZEL_VERSION=4.2.1 RUN mkdir /bazel && \ wget --no-check-certificate -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/b\ azel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \ wget --no-check-certificate -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \ chmod +x /bazel/installer.sh && \ /bazel/installer.sh && \ rm -f /bazel/installer.sh
RUN apt-get update && apt-get install -y mesa-common-dev libegl1-mesa-dev libgles2-mesa-dev RUN apt-get update && apt-get install -y mesa-utils
RUN apt-get update && apt-get install -y protobuf-compiler python3-dev RUN apt-get update && apt-get install -y libprotobuf-dev RUN pip3 install scikit-build
RUN apt-get update && apt-get install -y cmake
RUN apt-get update && apt-get install -y libmms0 libmms-dev
RUN apt-get update && apt-get install -y libc6
RUN pip3 install --upgrade setuptools pip RUN pip3 install opencv-python
COPY mediapipe_tensorflow /mediapipe/
RUN pip3 install -r requirements.txt
ENV CFLAGS=" -g -O2 -lm -ldl -Wall -Wpointer-arith -finline-functions -ffast-math -funroll-all-loops";
RUN python3 setup.py gen_protos RUN python3 setup.py install --link-opencv
2. Build it using the command
docker build . -t mediapipe_image ```
Did you get a chance to check this closed issue https://github.com/google/mediapipe/issues/1400
I saw in other issues that OpenGL currently isn't working in docker, that's why I try to run it with Tensorflow.
Hi @tom-doerr , MediaPipe calculator is not setup for CUDA ,we depend on OpenGl.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.
System information (Please provide as much relevant information as possible) Docker environment, base image:
FROM nvidia/cuda:10.1-cudnn8-devel-ubuntu18.04
.Describe the problem: I'm trying to build the mediapipe Python package with tensorflow support, but the build (
RUN python3 setup.py install --link-opencv
) is failing.Provide the exact sequence of commands / steps that you executed before running into the problem:
Complete Logs:
Traceback: