def download(): for species in all_species: print('Getting urls for', species) urls = get_urls(species, images_per_species) print('Downlaing images for', species) path = os.path.join('data', species) download_images(urls, path)
def download_test(): print("Test Set") for setting in all_types: print('Getting urls for', setting) urls = get_urls(setting, test_images) print('Downloading images for', setting) path = os.path.join('data', 'test', setting) download_images(urls, path)
def download_train(): print("Training Set") for setting in all_types: print('Getting urls for', setting) urls = get_urls(setting, train_images) print('Downloading images for', setting) path = os.path.join('data', 'train', setting) download_images(urls, path)
def download(outputPath): for specie in all_species: print('Getting urls for', specie) urls = get_urls(specie, img_per_specie, sizes, api_param) print('Downloading images for', specie) if outputPath == 'data/': path = os.path.join('data', specie, 'raw') download_images(urls, path) else: path = outputPath path = path + specie + '/raw' download_images(urls, path)