【问题标题】:tar: Unrecognized archive format error when trying to unpack flower_photos.tgz, TF tutorials on OSXtar:尝试解压flower_photos.tgz时出现无法识别的存档格式错误,OSX上的TF教程
【发布时间】:2017-07-05 05:22:06
【问题描述】:

我正在尝试在使用卷曲后打开flower_photos.tgz

curl -O http://download.tensorflow.org/example_../images/flower_photos.tgz
tar xzf flower_photos.tgz

这是来自 TensorFlow 的图像再训练教程

卷曲的结果

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   127  100   127    0     0    255      0 --:--:-- --:--:-- --:--:--   255

然后当我尝试解包时

tar xzf flower_photos.tgz
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.

【问题讨论】:

  • 这里有同样的问题,你能检查一下这个帖子中的新答案吗?
  • 有时你认为你已经下载了真正的存档,但你只是下载了一个带有一些错误信息的 HTML 文件,请使用诸如 more 或 cat 之类的命令检查文件的内容(即 moreflower_photos.tgz)为了验证它是压缩文件还是只是带有一些消息的常规文件

标签: python macos curl tensorflow deep-learning


【解决方案1】:

我通过从 safari 下载文件然后将文件复制到您的目录解决了这个问题。 curl命令下载的文件有问题。也许你可以试试我的方法。

【讨论】:

    【解决方案2】:

    尝试使用-L 标志,即

    curl -OL http://download.tensorflow.org/example_../images/flower_photos.tgz
    

    来源:https://github.com/arq5x/bedtools2/issues/189

    【讨论】:

      【解决方案3】:

      显然 TensorFlow 网站上的新指令运行没有问题

      我刚刚尝试了How to Retrain Inception's Final Layer for New Categories上发布的说明

      curl -O http://download.tensorflow.org/example_images/flower_photos.tgz
      
      tar xzf flower_photos.tgz
      

      一切正常

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2022-11-27
        • 1970-01-01
        • 1970-01-01
        • 2016-10-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多