Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to image coloring #1784

Merged
merged 2 commits into from
Jul 8, 2022
Merged

Conversation

JohnDoll2023
Copy link
Contributor

Description

Brief description of what this PR is about

  • Added random color array to remove need for specifying specific id's for objects
  • Improved efficiency of coloring algorithm
  • Resize array in translator to original image dimensions

@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2022

Codecov Report

Merging #1784 (7c76aa8) into master (bb5073f) will decrease coverage by 2.49%.
The diff coverage is 65.08%.

@@             Coverage Diff              @@
##             master    #1784      +/-   ##
============================================
- Coverage     72.08%   69.59%   -2.50%     
- Complexity     5126     5490     +364     
============================================
  Files           473      524      +51     
  Lines         21970    24316    +2346     
  Branches       2351     2644     +293     
============================================
+ Hits          15838    16923    +1085     
- Misses         4925     6082    +1157     
- Partials       1207     1311     +104     
Impacted Files Coverage Δ
api/src/main/java/ai/djl/modality/cv/Image.java 69.23% <ø> (-4.11%) ⬇️
...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java 76.00% <ø> (ø)
...rc/main/java/ai/djl/modality/cv/output/Joints.java 71.42% <ø> (ø)
.../main/java/ai/djl/modality/cv/output/Landmark.java 100.00% <ø> (ø)
...main/java/ai/djl/modality/cv/output/Rectangle.java 72.41% <0.00%> (ø)
...i/djl/modality/cv/translator/BigGANTranslator.java 21.42% <ø> (-5.24%) ⬇️
...odality/cv/translator/BigGANTranslatorFactory.java 33.33% <0.00%> (+8.33%) ⬆️
...nslator/InstanceSegmentationTranslatorFactory.java 14.28% <0.00%> (-3.90%) ⬇️
.../cv/translator/SemanticSegmentationTranslator.java 0.00% <0.00%> (ø)
.../cv/translator/StyleTransferTranslatorFactory.java 40.00% <ø> (ø)
... and 414 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4dd835c...7c76aa8. Read the comment docs.

Change-Id: I69a9c9e67c3da5265190375a6898be705c4f32ae
@frankfliu frankfliu merged commit e90e12c into deepjavalibrary:master Jul 8, 2022
@JohnDoll2023 JohnDoll2023 deleted the image branch July 8, 2022 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants