deepjavalibrary / djl

An Engine-Agnostic Deep Learning Framework in Java
https://djl.ai
Apache License 2.0
4.16k stars 660 forks source link

[api] Adds center fit image operation for Yolo #3425

Closed frankfliu closed 3 months ago

frankfliu commented 3 months ago

Description

Brief description of what this PR is about

codecov-commenter commented 3 months ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 39.39394% with 40 lines in your changes missing coverage. Please review.

Project coverage is 58.28%. Comparing base (c4baffb) to head (b87cc7f). Report is 68 commits behind head on master.

Files with missing lines Patch % Lines
...n/java/ai/djl/modality/cv/transform/CenterFit.java 21.05% 15 Missing :warning:
...i/djl/modality/cv/translator/YoloV5Translator.java 47.36% 8 Missing and 2 partials :warning:
...y/cv/translator/SingleShotDetectionTranslator.java 0.00% 1 Missing and 4 partials :warning:
.../ai/djl/modality/cv/translator/YoloTranslator.java 0.00% 4 Missing :warning:
...jl/modality/cv/translator/BaseImageTranslator.java 71.42% 1 Missing and 1 partial :warning:
...i/src/main/java/ai/djl/ndarray/NDArrayAdapter.java 0.00% 1 Missing :warning:
...e/src/main/java/ai/djl/mxnet/engine/MxNDArray.java 0.00% 1 Missing :warning:
.../main/java/ai/djl/tensorflow/engine/TfNDArray.java 0.00% 1 Missing :warning:
...rs/src/main/java/ai/djl/engine/rust/RsNDArray.java 0.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3425 +/- ## ============================================ + Coverage 58.25% 58.28% +0.03% - Complexity 5737 5775 +38 ============================================ Files 668 669 +1 Lines 32509 32654 +145 Branches 3439 3472 +33 ============================================ + Hits 18937 19033 +96 - Misses 12125 12163 +38 - Partials 1447 1458 +11 ```

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