leoxiaobin / deep-high-resolution-net.pytorch

The project is an official implementation of our CVPR2019 paper "Deep High-Resolution Representation Learning for Human Pose Estimation"
https://jingdongwang2017.github.io/Projects/HRNet/PoseEstimation.html
MIT License
4.32k stars 910 forks source link

SyntaxError: invalid syntax #252

Open greysou1 opened 3 years ago

greysou1 commented 3 years ago

I got this error when building docker in demo folder.

[+] Building 5216.8s (15/23)                                                                                                                                                                     
 => [internal] load build definition from Dockerfile                                                                                                                                        0.0s
 => => transferring dockerfile: 37B                                                                                                                                                         0.0s
 => [internal] load .dockerignore                                                                                                                                                           0.0s
 => => transferring context: 2B                                                                                                                                                             0.0s
 => [internal] load metadata for docker.io/nvidia/cuda:10.2-cudnn7-devel-ubuntu16.04                                                                                                        3.3s
 => [auth] nvidia/cuda:pull token for registry-1.docker.io                                                                                                                                  0.0s
 => [internal] load build context                                                                                                                                                           0.0s
 => => transferring context: 75B                                                                                                                                                            0.0s
 => [ 1/18] FROM docker.io/nvidia/cuda:10.2-cudnn7-devel-ubuntu16.04@sha256:3a2530583c79d4d0e6c903f45527b74160a3df592516be7cc02016891718f6ed                                                0.0s
 => CACHED [ 2/18] RUN apt-get update && apt-get install -y         apt-utils         build-essential         git         wget         unzip         yasm         pkg-config         libcu  0.0s
 => CACHED [ 3/18] RUN apt-get update && apt-get install -y         libeigen3-dev         libjpeg-dev         libpng-dev         libtiff-dev         libjasper-dev         libswscale-dev   0.0s
 => CACHED [ 4/18] RUN apt-get update && apt-get install -y         cppcheck         graphviz         doxygen         p7zip-full         libdlib18         libdlib-dev &&     apt-get auto  0.0s
 => [ 5/18] RUN mkdir -p /tmp &&     cd /tmp &&     wget --no-check-certificate -O opencv.zip https://github.com/opencv/opencv/archive/3.4.6.zip &&     wget --no-check-certificate -O   4820.8s
 => [ 6/18] RUN git clone https://github.com/FFmpeg/FFmpeg /root/ffmpeg &&     cd /root/ffmpeg &&     ./configure --enable-gpl --enable-libx264 --enable-nonfree --disable-shared --extr  384.1s 
 => [ 7/18] RUN git clone https://github.com/leoxiaobin/deep-high-resolution-net.pytorch.git /pose_root                                                                                     7.5s 
 => [ 8/18] WORKDIR /pose_root                                                                                                                                                              0.1s 
 => [ 9/18] RUN mkdir output && mkdir log                                                                                                                                                   0.3s 
 => ERROR [10/18] RUN pip3 install -r requirements.txt &&     pip3 install torch==1.1.0     torchvision==0.3.0     opencv-python     pillow==6.2.1                                          0.4s 
------                                                                                                                                                                                           
 > [10/18] RUN pip3 install -r requirements.txt &&     pip3 install torch==1.1.0     torchvision==0.3.0     opencv-python     pillow==6.2.1:                                                     
#14 0.412 Traceback (most recent call last):                                                                                                                                                     
#14 0.412   File "/usr/local/bin/pip3", line 7, in <module>                                                                                                                                      
#14 0.412     from pip._internal.cli.main import main                                                                                                                                            
#14 0.412   File "/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/main.py", line 58                                                                                                     
#14 0.412     sys.stderr.write(f"ERROR: {exc}")
#14 0.412                                    ^
#14 0.412 SyntaxError: invalid syntax
------
executor failed running [/bin/sh -c pip3 install -r requirements.txt &&     pip3 install torch==1.1.0     torchvision==0.3.0     opencv-python     pillow==6.2.1]: exit code: 1