
You can customize these default values by editing the augmentation_config.py file or by making your own image augmentation pipelineįolder input path containing images that will be augmented.`

Left or Right rotation between 0 or 25 degree (with a probability of 50%) Horizontal flip (with a probability of 30%) Python augmentation.py -folder=your_folder -limit=10000ġ0 000 augmented images will output by default to the "output" folder inside your image folder.īy default, this command will randomly apply these image transformations :Īdd Random noise (with a probability of 50%) Bing and Google won't let you download more than 800 images each, so the maximum for one download is around 1600 images if you use the -allsources parameter. Note : There are known limitations for the total number of images you can download in one use of the download.py script. Python download.py "red car" -allsources (all sources) Python download.py "red car" -source=Google -source=Bing (multi source) Python download.py "red car" -source=Google (single source) It will equally mix image files from all available sources Python download.py "red car" -resize=32x32"Ĭhoose the website to grab images : Google and/or Bing (default: Google). The parameter should be a couple of number representing the width and height (32x32 will ouput 32px x 32px image files) Resize downloaded images on the fly, to get a dataset formatted with the same size (default: no resizing). See the note below for the maximum limit.ĭownload the thumbnail instead of the full original image

Specify the number of files to download (default: 50). Python download.py "red car" -dest=your_folder Specify the destination folder to save files (default: images/) The first parameter should be a keyword describing the images to search for. You can find all possible parameters in the table below (also available with the -help parameter) : Parameters Python download.py "red car" -limit=150 -dest=folder_name -resize=250x250Īfter running this command, you will have 150 images of red cars (resized 250px by 250px) in the /folder_name/red_car folder.
