Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tar: Unrecognized archive format error when trying to unpack flower_photos.tgz, TF tutorials on OSX

I'm trying to unpack the flower_photos.tgz after curling it using

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

This is from the image retraining tutorial for TensorFlow

Results from curling

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

Then when I try to unpack

tar xzf flower_photos.tgz
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
like image 887
Ammar Asmro Avatar asked Feb 16 '17 08:02

Ammar Asmro


3 Answers

try using the -L flag, i.e.

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

source: https://github.com/arq5x/bedtools2/issues/189

like image 138
whiletrue Avatar answered Nov 13 '22 08:11

whiletrue


I solved this problem by downloading the file from safari and then copy the file to your directory. There is something wrong with the file download by command curl. Maybe you can try my method.

like image 44
Yu Gu Avatar answered Nov 13 '22 08:11

Yu Gu


Apparently the new instructions on TensorFlow website run without issues

I just tried the instructions posted on 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

It worked without any problems

like image 37
Ammar Asmro Avatar answered Nov 13 '22 08:11

Ammar Asmro