3
$\begingroup$

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

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

$\endgroup$
4
$\begingroup$

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.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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