Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
608e7901
Commit
608e7901
authored
Sep 30, 2016
by
Christopher Shallue
Browse files
Use tar on OSX to unzip the MSCOCO data file.
parent
19d80b98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
im2txt/im2txt/data/download_and_preprocess_mscoco.sh
im2txt/im2txt/data/download_and_preprocess_mscoco.sh
+7
-1
No files found.
im2txt/im2txt/data/download_and_preprocess_mscoco.sh
View file @
608e7901
...
@@ -29,6 +29,12 @@ if [ -z "$1" ]; then
...
@@ -29,6 +29,12 @@ if [ -z "$1" ]; then
exit
exit
fi
fi
if
[
"
$(
uname
)
"
==
"Darwin"
]
;
then
UNZIP
=
"tar -xf"
else
UNZIP
=
"unzip -nq"
fi
# Create the output directories.
# Create the output directories.
OUTPUT_DIR
=
"
${
1
%/
}
"
OUTPUT_DIR
=
"
${
1
%/
}
"
SCRATCH_DIR
=
"
${
OUTPUT_DIR
}
/raw-data"
SCRATCH_DIR
=
"
${
OUTPUT_DIR
}
/raw-data"
...
@@ -49,7 +55,7 @@ function download_and_unzip() {
...
@@ -49,7 +55,7 @@ function download_and_unzip() {
echo
"Skipping download of
${
FILENAME
}
"
echo
"Skipping download of
${
FILENAME
}
"
fi
fi
echo
"Unzipping
${
FILENAME
}
"
echo
"Unzipping
${
FILENAME
}
"
unzip
-nq
${
FILENAME
}
${
UNZIP
}
${
FILENAME
}
}
}
cd
${
SCRATCH_DIR
}
cd
${
SCRATCH_DIR
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment