3/10/2024 0 Comments Keras data augmentation![]() If we look at the Keras documentation for the ImageDataGenerator class, we see that we can plug in our own preprocessing function by simply specifying a callback with the parameter preprocessing_function. In this tutorial, we will implement a method to slightly scaling each color channel, thereby varying the color of the output image. ![]() One such case is handling color: Keras provides only a way of randomly changing the brightness, but no way of varying the color in our augmented dataset. However, it is often necessary to implement our own preprocessing function (our own ImageDataGenerator) if we want to add specific types of data augmentation. Out of the box, Keras provides a lot of good data augmentation techniques, as you might have seen in the previous tutorial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |