Skip to content

Commit

Permalink
update line 27, 28
Browse files Browse the repository at this point in the history
update line 27, 28 to avoid the overwriting of same-named images
  • Loading branch information
wubaoyuan authored Nov 30, 2018
1 parent 5f26a43 commit 1078edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/download_urls_multithreading.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def downloadImg(start, end, url_list, save_dir):
sp = line.rstrip('\n').split('\t')
url = sp[0]
url_list = url.split('/')
im_name = url_list[-2] + '_' url_list[-1]
im_name = url_list[-2] + '_' + url_list[-1]
try:
urllib.urlretrieve(url, os.path.join(save_dir, im_name))
record += 1
Expand Down

0 comments on commit 1078edb

Please sign in to comment.