Using Keras, how can I input an X_train of images (more than a thousand images)?

后端 未结 3 1740
一生所求
一生所求 2021-02-04 17:37

My application is accident-avoidance car systems using Machine Learning (Convolutional Neural Networks). My images are 200x100 JPG images and the output is an array of 4 element

3条回答
  •  不思量自难忘°
    2021-02-04 18:20

    Create a folder for train and in the folder, create separate folders for the classes of images.

    Access the images using

      train_generator = train_datagen.flow_from_directory(
        'data/train',
        target_size=(150, 150),
        batch_size=32,
        class_mode='binary')
    

    In reference to keras.io

提交回复
热议问题