# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
from ObjectDetectionElsys.config import Config

from ObjectDetectionElsys.augmentation import change_brightness_slightly, change_brightness_not_so_slightly, dropout, adjust_contrast, blur, grayscale, noise, sharpen 
from ObjectDetectionElsys.augmenter import augment_images

# +
cfg_path = './cfg/mobilenetyolov2.cfg'
cfg = Config(cfg_path)


images = './images/'
annotations = './annotations/'

augmenters = [blur, sharpen, noise, change_brightness_not_so_slightly, change_brightness_slightly, dropout]

target = 5150
max_augs = 3

#dest_im = './images/'
#dest_ann = './annotations/'
# -

augment_images(cfg, images, annotations, augmenters, target, max_augs)



StarcoderdataJupyterScriptsDedupFiltered