I want to use vgg16 to train a dataset that contains images.

Can I use fit() function instead of fit_generator() in Keras? How?


1 Answer 1


Yes you can. fit() takes the images in a numpy matrix while fit_generator() takes a generator object (processing images in batch)

Guide for using fit().

Guide for using fit_generator.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.