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
f50bc179
Commit
f50bc179
authored
May 14, 2018
by
Sebastian Brodehl
Browse files
Continue getting a partially-downloaded file.
Move second try after base_url_change into if-statement.
parent
ce6fccbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
research/inception/inception/data/download_imagenet.sh
research/inception/inception/data/download_imagenet.sh
+2
-3
No files found.
research/inception/inception/data/download_imagenet.sh
View file @
f50bc179
...
@@ -55,13 +55,12 @@ BASE_URL="http://www.image-net.org/challenges/LSVRC/2012/nonpub"
...
@@ -55,13 +55,12 @@ BASE_URL="http://www.image-net.org/challenges/LSVRC/2012/nonpub"
BOUNDING_BOX_ANNOTATIONS
=
"
${
BASE_URL
}
/ILSVRC2012_bbox_train_v2.tar.gz"
BOUNDING_BOX_ANNOTATIONS
=
"
${
BASE_URL
}
/ILSVRC2012_bbox_train_v2.tar.gz"
BBOX_TAR_BALL
=
"
${
BBOX_DIR
}
/annotations.tar.gz"
BBOX_TAR_BALL
=
"
${
BBOX_DIR
}
/annotations.tar.gz"
echo
"Downloading bounding box annotations."
echo
"Downloading bounding box annotations."
wget
"
${
BOUNDING_BOX_ANNOTATIONS
}
"
-O
"
${
BBOX_TAR_BALL
}
"
||
BASE_URL_CHANGE
=
1
wget
-c
"
${
BOUNDING_BOX_ANNOTATIONS
}
"
-O
"
${
BBOX_TAR_BALL
}
"
||
BASE_URL_CHANGE
=
1
if
[
$BASE_URL_CHANGE
]
;
then
if
[
$BASE_URL_CHANGE
]
;
then
BASE_URL
=
"http://www.image-net.org/challenges/LSVRC/2012/nnoupb"
BASE_URL
=
"http://www.image-net.org/challenges/LSVRC/2012/nnoupb"
BOUNDING_BOX_ANNOTATIONS
=
"
${
BASE_URL
}
/ILSVRC2012_bbox_train_v2.tar.gz"
BOUNDING_BOX_ANNOTATIONS
=
"
${
BASE_URL
}
/ILSVRC2012_bbox_train_v2.tar.gz"
BBOX_TAR_BALL
=
"
${
BBOX_DIR
}
/annotations.tar.gz
"
wget
-c
"
${
BOUNDING_BOX_ANNOTATIONS
}
"
-O
"
${
BBOX_TAR_BALL
}
"
fi
fi
wget
"
${
BOUNDING_BOX_ANNOTATIONS
}
"
-O
"
${
BBOX_TAR_BALL
}
"
echo
"Uncompressing bounding box annotations ..."
echo
"Uncompressing bounding box annotations ..."
tar
xzf
"
${
BBOX_TAR_BALL
}
"
-C
"
${
BBOX_DIR
}
"
tar
xzf
"
${
BBOX_TAR_BALL
}
"
-C
"
${
BBOX_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