minhui study

[이미지 분석으로배우는 tensorflow2.0 와 Pytorch] - tensorflow2.0 fit_generator 본문

딥러닝,인공지능

[이미지 분석으로배우는 tensorflow2.0 와 Pytorch] - tensorflow2.0 fit_generator

minhui 2021. 1. 24. 07:28

fit_generator - Image Transformation

Load Image

 

Set Data Generator

 

Transformation

ImageDataGenerator property

  • width_shift_range : move in horizontal range

  • height_shift_range : move in vertical range

  • rotation_range : rotation within the angular range
  • brightness_range

  • zoom_range : zoom in/out of image in range

  • horizontal_flip : flip image horizontally

  • vertical_flip : flip image vertically

  • rescale

  • preprocessing_function

 

 

Rescale시 주의사항

transformation은 test셋에서는 할 필요가 없지만 rescale은 train셋과 test셋 둘 다 해주어야 한다.

 

 

 

fit-generator - flow_from_directory

 

Hyperparameter Tunning

 

 

Preprocess

 

 

 

build model

 

 

Training

 

 

 

Comments