python41 keras ImageDataGenerator 1. ImageDataGenerator 선언 import tensorflow as tf from tensorflow import keras from keras.preprocessing.image import ImageDataGenerator batch_size = 16 img_height = 96 img_width = 200 train_datagen = ImageDataGenerator( rescale = 1./ 255, # 이미지 데이터 정규화 validation_split = 0.2, # train, validation 데이터 분할 (8:2) ) train_generator = train_datagen.flow_from_directory( TRAIN_PATH, batch_size=batch_size,.. 2022. 10. 1. 이전 1 ··· 6 7 8 9 다음