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

Add hide labels/confidence #844

Merged
merged 1 commit into from
Mar 10, 2023
Merged

Add hide labels/confidence #844

merged 1 commit into from
Mar 10, 2023

Conversation

aphilas
Copy link
Contributor

@aphilas aphilas commented Mar 8, 2023

Add option to hide labels/confidence.

Discussion: #839

Changes:

  • sahi/utils/cv.py
    • visualize_prediction() - add hide_labels argument
    • visualize_object_predictions() - add hide_labels and hide_conf arguments
  • sahi/predict.py - predict() - add visual_hide_labels and visual_hide_conf arguments
  • sahi/prediction.py
    • PredictionResult.export_visuals() - add hide_labels and hide_conf arguments

Demo notebook

I can't find any references for visualize_prediction. Is it used anywhere?

The naming for the arguments is taken from ultralytics/yolov5: utils/detect.py#L172, segment/predict.py#L192

@fcakyon fcakyon added this pull request to the merge queue Mar 10, 2023
Merged via the queue into obss:main with commit 7d63528 Mar 10, 2023
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.

2 participants