tar:尝试解压缩flower_photos.tgz,TF tutorials on OSX时出现无法识别的存档格式错误

2024-05-16 07:38:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图打开花的照片。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.

Tags: httptimedownloadtensorflowtarcurl照片total
3条回答

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

显然,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

它没有任何问题

尝试使用-L标志,即

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

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

相关问题 更多 >