anibali / margipose

3D monocular human pose estimation
Apache License 2.0
98 stars 20 forks source link

Pretrained models error when execute the code "./run.sh margipose infer --model margipose-mpi3d.pth --image resources/man_running.jpg" #27

Closed laomaup closed 2 years ago

laomaup commented 3 years ago

Building Docker images Building main ERROR: Service 'main' failed to build: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 2

anibali commented 3 years ago

I can't reproduce this. Could you try running docker-compose build and post the output?

laomaup commented 3 years ago

I think the reason is the interruption of the network when download. after this step, what can i do?

Building main Step 1/21 : FROM nvidia/cuda:10.0-base-ubuntu16.04 ---> bd1ec602ed17 Step 2/21 : RUN apt-get update && apt-get install -y curl ca-certificates sudo git bzip2 libx11-6 && rm -rf /var/lib/apt/lists/* ---> Using cache ---> 324394d9d211 Step 3/21 : RUN mkdir /app ---> Using cache ---> 18f7088f1350 Step 4/21 : WORKDIR /app ---> Using cache ---> cfb1461c93fc Step 5/21 : RUN adduser --disabled-password --gecos '' --shell /bin/bash user && chown -R user:user /app ---> Using cache ---> afa001eb14d8 Step 6/21 : RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user ---> Using cache ---> 51cf23302d4f Step 7/21 : USER user ---> Using cache ---> 1da7843b5d8d Step 8/21 : ENV HOME=/home/user ---> Using cache ---> 615383f40191 Step 9/21 : RUN chmod 777 /home/user ---> Using cache ---> 6a5c23815982 Step 10/21 : ENV CONDA_AUTO_UPDATE_CONDA=false ---> Using cache ---> d8d6ae425bcd Step 11/21 : ENV PATH=/home/user/miniconda/bin:$PATH ---> Using cache ---> 180b8562ad38 Step 12/21 : RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-4.7.12.1-Linux-x86_64.sh && chmod +x ~/miniconda.sh && ~/miniconda.sh -b -p ~/miniconda && rm ~/miniconda.sh ---> Using cache ---> 8292613d9a34 Step 13/21 : COPY environment.yml . ---> Using cache ---> 130708636d11 Step 14/21 : RUN conda env update --name base ---> Using cache ---> 7585e4a4ea9e Step 15/21 : RUN mkdir -p $HOME/.config/matplotlib && echo "backend : TkAgg" > $HOME/.config/matplotlib/matplotlibrc ---> Using cache ---> 3213f0f28195 Step 16/21 : COPY requirements.txt . ---> Using cache ---> c790c54c6446 Step 17/21 : RUN pip install -r requirements.txt ---> Running in b452c6a3d6da Collecting pyshowoff Cloning https://github.com/anibali/pyshowoff.git (to revision 3396cb916c390886873fb0a6b8515f91c0c1574c) to /tmp/pip-install-tjlz8p43/pyshowoff_a39388127b0041618b958829b1f1079a Running command git clone -q https://github.com/anibali/pyshowoff.git /tmp/pip-install-tjlz8p43/pyshowoff_a39388127b0041618b958829b1f1079a Running command git rev-parse -q --verify 'sha^3396cb916c390886873fb0a6b8515f91c0c1574c' Running command git fetch -q https://github.com/anibali/pyshowoff.git 3396cb916c390886873fb0a6b8515f91c0c1574c Running command git checkout -q 3396cb916c390886873fb0a6b8515f91c0c1574c Collecting tele Cloning https://github.com/anibali/tele.git (to revision e2b0af5f28100abd581dbf3871bee90b178a5c98) to /tmp/pip-install-tjlz8p43/tele_116ff6b3e3ac46f78d124c99a235c3c6 Running command git clone -q https://github.com/anibali/tele.git /tmp/pip-install-tjlz8p43/tele_116ff6b3e3ac46f78d124c99a235c3c6 Running command git rev-parse -q --verify 'sha^e2b0af5f28100abd581dbf3871bee90b178a5c98' Running command git fetch -q https://github.com/anibali/tele.git e2b0af5f28100abd581dbf3871bee90b178a5c98 fatal: unable to access 'https://github.com/anibali/tele.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated. WARNING: Discarding git+https://github.com/anibali/tele.git@e2b0af5f28100abd581dbf3871bee90b178a5c98#egg=tele. Command errored out with exit status 128: git fetch -q https://github.com/anibali/tele.git e2b0af5f28100abd581dbf3871bee90b178a5c98 Check the logs for full command output. Collecting pose3d-utils Cloning https://github.com/anibali/pose3d-utils (to revision 9251f832d9b7aa38e1e5b592965e5f557317ec36) to /tmp/pip-install-tjlz8p43/pose3d-utils_44082065948443afb7bf61b7ddf02458 Running command git clone -q https://github.com/anibali/pose3d-utils /tmp/pip-install-tjlz8p43/pose3d-utils_44082065948443afb7bf61b7ddf02458 Running command git rev-parse -q --verify 'sha^9251f832d9b7aa38e1e5b592965e5f557317ec36' Running command git fetch -q https://github.com/anibali/pose3d-utils 9251f832d9b7aa38e1e5b592965e5f557317ec36 fatal: unable to access 'https://github.com/anibali/pose3d-utils/': gnutls_handshake() failed: The TLS connection was non-properly terminated. WARNING: Discarding git+https://github.com/anibali/pose3d-utils@9251f832d9b7aa38e1e5b592965e5f557317ec36#egg=pose3d-utils. Command errored out with exit status 128: git fetch -q https://github.com/anibali/pose3d-utils 9251f832d9b7aa38e1e5b592965e5f557317ec36 Check the logs for full command output. Collecting torchdata Cloning https://github.com/anibali/torchdata.git (to revision d52d0c8b9307389eadfba643ec1bb0ef77bc210e) to /tmp/pip-install-tjlz8p43/torchdata_f068b22e343f4ab38f4be79b1f593b12 Running command git clone -q https://github.com/anibali/torchdata.git /tmp/pip-install-tjlz8p43/torchdata_f068b22e343f4ab38f4be79b1f593b12 Running command git rev-parse -q --verify 'sha^d52d0c8b9307389eadfba643ec1bb0ef77bc210e' Running command git fetch -q https://github.com/anibali/torchdata.git d52d0c8b9307389eadfba643ec1bb0ef77bc210e fatal: unable to access 'https://github.com/anibali/torchdata.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated. WARNING: Discarding git+https://github.com/anibali/torchdata.git@d52d0c8b9307389eadfba643ec1bb0ef77bc210e#egg=torchdata. Command errored out with exit status 128: git fetch -q https://github.com/anibali/torchdata.git d52d0c8b9307389eadfba643ec1bb0ef77bc210e Check the logs for full command output. Collecting graphviz==0.8 Downloading graphviz-0.8-py2.py3-none-any.whl (17 kB) Collecting numpy==1.16.4 Downloading numpy-1.16.4-cp37-cp37m-manylinux1_x86_64.whl (17.3 MB) Collecting Pillow==6.2.2 Downloading Pillow-6.2.2-cp37-cp37m-manylinux1_x86_64.whl (2.1 MB) Collecting tqdm==4.19.5 Downloading tqdm-4.19.5-py2.py3-none-any.whl (51 kB) Collecting scipy==1.4.1 Downloading scipy-1.4.1-cp37-cp37m-manylinux1_x86_64.whl (26.1 MB) Requirement already satisfied: torch==1.1.0 in /home/user/miniconda/lib/python3.7/site-packages (from -r requirements.txt (line 6)) (1.1.0) Requirement already satisfied: torchvision==0.3.0 in /home/user/miniconda/lib/python3.7/site-packages (from -r requirements.txt (line 7)) (0.3.0) Collecting pretrainedmodels==0.6.0 Downloading pretrainedmodels-0.6.0.tar.gz (51 kB) Collecting matplotlib==2.2.5 Downloading matplotlib-2.2.5-cp37-cp37m-manylinux1_x86_64.whl (12.8 MB) Collecting h5py==2.10.0 Downloading h5py-2.10.0-cp37-cp37m-manylinux1_x86_64.whl (2.9 MB) Collecting importlib_resources==0.4.0 Downloading importlib_resources-0.4.tar.gz (23 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Collecting semantic_version==2.6.0 Downloading semantic_version-2.6.0-py3-none-any.whl (14 kB) Collecting sacred==0.7.3 Downloading sacred-0.7.3-py2.py3-none-any.whl (82 kB) Collecting pymongo==3.6.0 Downloading pymongo-3.6.0.tar.gz (581 kB) Collecting GitPython==3.1.0 Downloading GitPython-3.1.0-py3-none-any.whl (450 kB) Collecting tabulate==0.8.2 Downloading tabulate-0.8.2.tar.gz (45 kB) Collecting plotly==2.3.0 Downloading plotly-2.3.0.tar.gz (1.1 MB) Collecting pandas==0.25.3 Downloading pandas-0.25.3-cp37-cp37m-manylinux1_x86_64.whl (10.4 MB) ERROR: Could not find a version that satisfies the requirement tele (unavailable) (from versions: 0.0.0, 0.1.0a4, 0.1.0a5) ERROR: No matching distribution found for tele (unavailable) ERROR: Service 'main' failed to build: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1

laomaup commented 3 years ago

i need attach this container 086ef7d5a1ac? after this which code can i use, and how use it. thank you.

anibali commented 3 years ago

You need to resolve whatever the problem is with your network that is causing the downloads from GitHub to fail. Once you fix that, docker-compose build should complete successfully. Then you should be able to run ./run.sh margipose infer --model margipose-mpi3d.pth --image resources/man_running.jpg.