flow2ml / Flow2ML

An Open Source Library to make Machine Learning process much Simpler
MIT License
25 stars 26 forks source link

Connect aug filters #123

Closed rubyruins closed 3 years ago

rubyruins commented 3 years ago

Description:

Creates connection between filters.py and Augmentations.py in such a way that user should be able to apply filters on augmented images and vice versa

Fixes #92

Type of change:

Screenshots / Video:

Running the following code to apply augmentations on filters

filters = ["median", "laplacian"]
flow.applyFilters( filters )
operations = {'flipped': 'horizontal', 'rotated': 90, 'apply_on_filters': ['laplacian']}
flow.applyAugmentation( operations )

Rotatedlaplacianapple_2 and Rotatedlaplacianapple_3

Running the following code to apply filters on augmentations

operations = {'flipped': 'horizontal', 'rotated': 90}
flow.applyAugmentation( operations )
filters = ["median", "laplacian", {'apply_on_augmentation': ['rotated']}]
flow.applyFilters( filters )

MedianRotatedorange_2 and MedianRotatedorange_3