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
3bdc3253
Commit
3bdc3253
authored
Sep 30, 2016
by
Chris Shallue
Committed by
GitHub
Sep 30, 2016
Browse files
Merge pull request #482 from cshallue/unzip
Use tar on OSX to unzip the MSCOCO data file.
parents
7e9b9830
608e7901
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 @
3bdc3253
...
...
@@ -29,6 +29,12 @@ if [ -z "$1" ]; then
exit
fi
if
[
"
$(
uname
)
"
==
"Darwin"
]
;
then
UNZIP
=
"tar -xf"
else
UNZIP
=
"unzip -nq"
fi
# Create the output directories.
OUTPUT_DIR
=
"
${
1
%/
}
"
SCRATCH_DIR
=
"
${
OUTPUT_DIR
}
/raw-data"
...
...
@@ -49,7 +55,7 @@ function download_and_unzip() {
echo
"Skipping download of
${
FILENAME
}
"
fi
echo
"Unzipping
${
FILENAME
}
"
unzip
-nq
${
FILENAME
}
${
UNZIP
}
${
FILENAME
}
}
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