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

Improve visualize function for object detection #739

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

ulya-tkch
Copy link
Contributor

  • fix linestyle when overlay=False
  • add option to save image as different types of files

@ulya-tkch ulya-tkch requested a review from jwmueller June 7, 2023 23:53
Copy link
Member

@jwmueller jwmueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Merging #739 (8857707) into master (bf3b56c) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #739      +/-   ##
==========================================
+ Coverage   96.15%   96.20%   +0.04%     
==========================================
  Files          51       51              
  Lines        4163     4165       +2     
  Branches      729      728       -1     
==========================================
+ Hits         4003     4007       +4     
+ Misses         86       85       -1     
+ Partials       74       73       -1     
Impacted Files Coverage Δ
cleanlab/object_detection/summary.py 98.88% <100.00%> (+2.29%) ⬆️

@ulya-tkch ulya-tkch merged commit 7d84aa4 into cleanlab:master Jun 8, 2023
@ulya-tkch ulya-tkch deleted the uly-od-visualize-bugfix branch June 8, 2023 04:11
image_format = (
save_path[-3:]
if len(save_path) > 2
and save_path[-4] == "."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this check will fail for filename.ps since save_path[-4] != "."
Would it instead be better to use save_path.split(".")? Tho you might need some try-except blocks to catch in case the path provided does not contain a period

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