UOMOP

Data Augmentation(픽셀 기반) 본문

Ai/DL

Data Augmentation(픽셀 기반)

Happy PinGu 2022. 2. 10. 16:20

brightness_range

data_gen = ImageDataGenerator(brightness_range=(0.1, 0.9))

show_aug_image_batch(cat_3dim, data_gen, 5)
data_gen = ImageDataGenerator(brightness_range=(1.0, 2.3))

show_aug_image_batch(cat_3dim, data_gen, 5)

channel_shift_range

data_gen = ImageDataGenerator(channel_shift_range=150.0)
# -150~150사이 하나의 수를 골라 픽셀 값에 더해준다.

show_aug_image_batch(cat_3dim, data_gen, 5)

 

 

 

 

 

Comments