juliendenize / torchaug

Library to perform efficient vision data augmentations for CPU/GPU per-sample/batched data.
https://torchaug.readthedocs.io/en/latest/
Other
24 stars 2 forks source link

Add cast_dtype to normalize transform #2

Closed juliendenize closed 1 year ago

juliendenize commented 1 year ago

Allow users to pass a non-float input tensor to normalize transforms.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (8b178b2) 99.86% compared to head (de8b180) 99.86%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2 +/- ## ======================================= Coverage 99.86% 99.86% ======================================= Files 9 9 Lines 745 754 +9 ======================================= + Hits 744 753 +9 Misses 1 1 ``` | [Files Changed](https://app.codecov.io/gh/juliendenize/torchaug/pull/2?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Julien+Denize) | Coverage Δ | | |---|---|---| | [torchaug/transforms/functional.py](https://app.codecov.io/gh/juliendenize/torchaug/pull/2?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Julien+Denize#diff-dG9yY2hhdWcvdHJhbnNmb3Jtcy9mdW5jdGlvbmFsLnB5) | `100.00% <100.00%> (ø)` | | | [torchaug/transforms/transforms.py](https://app.codecov.io/gh/juliendenize/torchaug/pull/2?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Julien+Denize#diff-dG9yY2hhdWcvdHJhbnNmb3Jtcy90cmFuc2Zvcm1zLnB5) | `100.00% <100.00%> (ø)` | |

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