Skip to content

Simple test time augmentation (TTA) for keras python library.

Notifications You must be signed in to change notification settings

tsterbak/keras_tta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

keras_tta

Simple test time augmentation (TTA) for keras python library.

So far the wrapper flips the images horizontally and vertically and averages the predictions of all flipped images.

The intuition behind this is that even if the test image is not too easy to make a prediction, the transformations change it such that the model has higher chances of capturing the target shape and predicting accordingly.

Example:

tta_model = TTA_ModelWrapper(model)

predictions = tta_model.predict(X_test)

About

Simple test time augmentation (TTA) for keras python library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages