james77777778 / keras-aug

A library that includes Keras 3 preprocessing and augmentation layers, providing support for various data types such as images, labels, bounding boxes, segmentation masks, and more.
Apache License 2.0
16 stars 0 forks source link

Add segmentation masks support to many layers #62

Closed james77777778 closed 1 year ago

james77777778 commented 1 year ago

Fixes #58 Fixes #61

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 56.33% and project coverage change: +0.07 :tada:

Comparison is base (dc14eb5) 86.60% compared to head (67a296c) 86.67%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #62 +/- ## ========================================== + Coverage 86.60% 86.67% +0.07% ========================================== Files 52 52 Lines 3613 3647 +34 ========================================== + Hits 3129 3161 +32 - Misses 484 486 +2 ``` | [Impacted Files](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu) | Coverage Δ | | |---|---|---| | [...layers/augmentation/regularization/random\_erase.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9hdWdtZW50YXRpb24vcmVndWxhcml6YXRpb24vcmFuZG9tX2VyYXNlLnB5) | `92.42% <ø> (-0.33%)` | :arrow_down: | | [...rs/augmentation/regularization/random\_grid\_mask.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9hdWdtZW50YXRpb24vcmVndWxhcml6YXRpb24vcmFuZG9tX2dyaWRfbWFzay5weQ==) | `70.09% <ø> (-0.55%)` | :arrow_down: | | [...as\_aug/layers/augmentation/geometry/random\_flip.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9hdWdtZW50YXRpb24vZ2VvbWV0cnkvcmFuZG9tX2ZsaXAucHk=) | `91.30% <20.00%> (-4.10%)` | :arrow_down: | | [...\_aug/layers/augmentation/geometry/random\_rotate.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9hdWdtZW50YXRpb24vZ2VvbWV0cnkvcmFuZG9tX3JvdGF0ZS5weQ==) | `89.74% <33.33%> (-4.78%)` | :arrow_down: | | [...yers/augmentation/geometry/random\_zoom\_and\_crop.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9hdWdtZW50YXRpb24vZ2VvbWV0cnkvcmFuZG9tX3pvb21fYW5kX2Nyb3AucHk=) | `78.00% <42.30%> (-7.90%)` | :arrow_down: | | [...as\_aug/layers/augmentation/geometry/random\_crop.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9hdWdtZW50YXRpb24vZ2VvbWV0cnkvcmFuZG9tX2Nyb3AucHk=) | `93.38% <42.85%> (+5.56%)` | :arrow_up: | | [keras\_aug/layers/preprocessing/geometry/resize.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9wcmVwcm9jZXNzaW5nL2dlb21ldHJ5L3Jlc2l6ZS5weQ==) | `94.55% <42.85%> (+11.32%)` | :arrow_up: | | [...as\_aug/layers/base/vectorized\_base\_random\_layer.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9iYXNlL3ZlY3Rvcml6ZWRfYmFzZV9yYW5kb21fbGF5ZXIucHk=) | `88.34% <45.00%> (-5.78%)` | :arrow_down: | | [...rs/augmentation/geometry/random\_crop\_and\_resize.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9hdWdtZW50YXRpb24vZ2VvbWV0cnkvcmFuZG9tX2Nyb3BfYW5kX3Jlc2l6ZS5weQ==) | `87.77% <50.00%> (-3.99%)` | :arrow_down: | | [...\_aug/layers/augmentation/geometry/random\_resize.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9hdWdtZW50YXRpb24vZ2VvbWV0cnkvcmFuZG9tX3Jlc2l6ZS5weQ==) | `87.69% <60.00%> (+5.74%)` | :arrow_up: | | ... and [4 more](https://app.codecov.io/gh/james77777778/keras-aug/pull/62?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.