dog-breeds-classification
dog-breeds-classification copied to clipboard
Setup script tar problem
When running sh ./setup/setup.sh
, I get the following error:
sallese@sallese-To-be-filled-by-O-E-M:~/dog-breeds-classification$ ./setup/setup.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 84.8M 100 84.8M 0 0 11.6M 0 0:00:07 0:00:07 --:--:-- 11.9M
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 756M 100 756M 0 0 10.2M 0 0:01:13 0:01:13 --:--:-- 7631k
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 20.8M 100 20.8M 0 0 5338k 0 0:00:03 0:00:03 --:--:-- 5340k
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
It seems to think that the tar file isn't in gzip format. Putting together a PR for what fixes this for me. I'm not sure if others have hit this so if that doesn't make sense to merge, that's ok.
I don't have permissions to push to a branch. If others hit this problem, I had to modify setup/download_stanford_dogs_dataset.sh
with the following changes:
diff --git a/setup/download_stanford_dogs_dataset.sh b/setup/download_stanford_dogs_dataset.sh
index e1a90cb..04f78bc 100755
--- a/setup/download_stanford_dogs_dataset.sh
+++ b/setup/download_stanford_dogs_dataset.sh
@@ -2,6 +2,6 @@
mkdir -p data/stanford_ds
curl -o data/stanford_ds/images.tar http://vision.stanford.edu/aditya86/ImageNetDogs/images.tar
-tar xfz data/stanford_ds/images.tar -C data/stanford_ds/
+tar xf data/stanford_ds/images.tar -C data/stanford_ds/
curl -o data/stanford_ds/annotation.tar http://vision.stanford.edu/aditya86/ImageNetDogs/annotation.t
-tar xfz data/stanford_ds/annotation.tar -C data/stanford_ds/
+tar xf data/stanford_ds/annotation.tar -C data/stanford_ds/
Just taking out the z
in the tar xfz
in the setup/download_stanford_dogs_dataset.sh