-
Notifications
You must be signed in to change notification settings - Fork 96
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 option to analysis export for exporting predictions for all frames including those with no predictions #1624
base: develop
Are you sure you want to change the base?
Changes from all commits
bedb879
8635ec0
51f1d21
1f8cb47
b358252
a9cb496
6d93f17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,7 @@ def write( | |
filename: str, | ||
source_object: Labels, | ||
source_path: str = None, | ||
all_frames: bool = False, | ||
video: Video = None, | ||
Comment on lines
+132
to
133
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
): | ||
"""Writes analysis file for :py:class:`Labels` `source_object`. | ||
vtsai881 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
@@ -147,6 +148,6 @@ def write( | |
labels=source_object, | ||
output_path=filename, | ||
labels_path=source_path, | ||
all_frames=True, | ||
all_frames=all_frames, | ||
video=video, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding error handling in the
main
function to manage potential exceptions that could be raised during the execution of the script. This would improve the robustness and user experience by providing more informative error messages and handling edge cases gracefully.