2017-04-17 56 views
0

同時運行此代碼Tensorflow:lable_image 「無法下載並安裝inception_v3_2016_08_28_frozen.pb.tar.gz」

curl -L "https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz" | 
    tar -C tensorflow/examples/label_image/data -xz" 

我得到了以下錯誤:

**% Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
    0  0 0  0 0  0  0  0 --:--:-- --:--:-- --:--:--  0curl: (77) error setting certificate verify locat 
ions: 
    CAfile: /etc/pki/tls/certs/ca-bundle.crt 
    CApath: none 
gzip: stdin: unexpected end of file 
tar: Child returned status 1 
tar: Error is not recoverable: exiting now** 

任何想法是錯的?

親切的問候, 曼蘇爾

回答

0

我不知道到底是什麼導致這個錯誤信息(因爲這看起來有些證書錯誤),但我認爲在執行tar命令之前,目標目錄必須存在。以下命令鏈應該適合您的需求:

curl -L -o test.tar.gz "https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz" && mkdir -p tensorflow/examples/label_image/data && tar xvzf test.tar.gz -C tensorflow/examples/label_image/data && rm test.tar.gz 
+0

謝謝親愛的。最後是證書錯誤。修復。謝謝您的幫助。 –