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

Fix `tf.where` inconsistent dtype bug #126

Closed james77777778 closed 1 year ago

james77777778 commented 1 year ago

Should fix #125

codecov[bot] commented 1 year ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (362d47c) 87.00% compared to head (407f3c1) 87.00%.

:exclamation: Current head 407f3c1 differs from pull request most recent head f951f23. Consider uploading reports for the commit f951f23 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #126 +/- ## ======================================= Coverage 87.00% 87.00% ======================================= Files 63 63 Lines 4224 4224 ======================================= Hits 3675 3675 Misses 549 549 ``` | [Files](https://app.codecov.io/gh/james77777778/keras-aug/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu) | Coverage Δ | | |---|---|---| | [keras\_aug/datapoints/bounding\_box/utils.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2RhdGFwb2ludHMvYm91bmRpbmdfYm94L3V0aWxzLnB5) | `80.95% <ø> (ø)` | | | [...yers/augmentation/geometry/random\_zoom\_and\_crop.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9hdWdtZW50YXRpb24vZ2VvbWV0cnkvcmFuZG9tX3pvb21fYW5kX2Nyb3AucHk=) | `76.78% <ø> (ø)` | | | [...ayers/augmentation/regularization/random\_cutout.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9hdWdtZW50YXRpb24vcmVndWxhcml6YXRpb24vcmFuZG9tX2N1dG91dC5weQ==) | `93.58% <ø> (ø)` | | | [keras\_aug/layers/preprocessing/geometry/resize.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9wcmVwcm9jZXNzaW5nL2dlb21ldHJ5L3Jlc2l6ZS5weQ==) | `94.59% <ø> (ø)` | | | [...ug/layers/preprocessing/intensity/auto\_contrast.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9wcmVwcm9jZXNzaW5nL2ludGVuc2l0eS9hdXRvX2NvbnRyYXN0LnB5) | `86.11% <100.00%> (ø)` | | | [...ras\_aug/layers/preprocessing/intensity/equalize.py](https://app.codecov.io/gh/james77777778/keras-aug/pull/126?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HongYu#diff-a2VyYXNfYXVnL2xheWVycy9wcmVwcm9jZXNzaW5nL2ludGVuc2l0eS9lcXVhbGl6ZS5weQ==) | `66.00% <ø> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.