Skip to content

Commit

Permalink
Merge pull request alex000kim#28 from EBazarov/patch-3
Browse files Browse the repository at this point in the history
Download images in parallel
  • Loading branch information
alexkim-gh authored Feb 19, 2019
2 parents 770faf3 + f1ee8af commit 747142e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/2_download_from_urls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ do
mkdir -p "$images_dir"
echo "Class: $cname. Total # of urls: $(cat $urls_file | wc -l)"
echo "Downloading images..."
wget -nc -q --timeout=5 --tries=2 -i "$urls_file" -P "$images_dir"
xargs -n 20 -P 8 wget -nc -q --timeout=5 --tries=2 -P "$images_dir" < "$urls_file"
done

0 comments on commit 747142e

Please sign in to comment.