دیتای TRAIN,step اش رو که درست دادم ؟!
train_generator = train_datagen.flow_from_directory(
'd:/train', # this is the target directory
target_size=(width, height), # all images will be resized to 150x150
batch_size=batch_size,
color_mode= "grayscale",
class_mode='binary',
shuffle=True
# ,save_to_dir='preview', save_prefix='cat', save_format='png'
) # since we
model.fit_generator(
train_generator,
steps_per_epoch=int(train_generator.samples/train_generator.batch_size), #x_train.shape[0] // batch_size,
epochs=20,
validation_data=validation_generator,
validation_steps=int(validation_generator.samples/validation_generator.batch_size),
callbacks=callbackss
)