download_images.sh 594 B

1234567891011121314151617181920212223242526
  1. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
  2. # Full license terms provided in LICENSE.md file.
  3. image_urls=(
  4. http://farm3.static.flickr.com/2017/2496831224_221cd963a2.jpg
  5. http://farm3.static.flickr.com/2582/4106642219_190bf0f817.jpg
  6. http://farm4.static.flickr.com/3226/2719028129_9aa2e27675.jpg
  7. )
  8. image_names=(
  9. gordon_setter.jpg
  10. lifeboat.jpg
  11. golden_retriever.jpg
  12. )
  13. image_folder=data/images
  14. mkdir -p $image_folder
  15. for i in ${!image_urls[@]}
  16. do
  17. echo ${image_urls[$i]}
  18. echo ${image_names[$i]}
  19. wget -O $image_folder/${image_names[$i]} ${image_urls[$i]}
  20. done