Skip to content

Commit

Permalink
Add shua code
Browse files Browse the repository at this point in the history
  • Loading branch information
minus31 committed Oct 20, 2019
1 parent a302213 commit 3a8d7ef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions keras_retinanet/preprocessing/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,12 @@ def download(url, path=None, overwrite=False, sha1_hash=None):

def download_voc(path, overwrite=False):
_DOWNLOAD_URLS = [
('http://bit.ly/yolk_voc_train_val2007_tar'),
('http://bit.ly/yolk_voc_train_val2012_tar'),
('http://bit.ly/yolk_voc_test2012_tar')]
('http://bit.ly/yolk_voc_train_val2007_tar',
'34ed68851bce2a36e2a223fa52c661d592c66b3c'),
('http://bit.ly/yolk_voc_train_val2012_tar',
'41a8d6e12baa5ab18ee7f8f8029b9e11805b4ef1'),
('http://bit.ly/yolk_voc_test2012_tar',
'4e443f8a2eca6b1dac8a6c57641b67dd40621a49')]
makedirs(path)
for url, checksum in _DOWNLOAD_URLS:
filename = download(url, path=path, overwrite=overwrite, sha1_hash=checksum)
Expand Down

0 comments on commit 3a8d7ef

Please sign in to comment.