-
Notifications
You must be signed in to change notification settings - Fork 116
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
Video metadata in workflows
#590
Video metadata in workflows
#590
Conversation
@@ -1083,7 +1092,8 @@ def decode_video_frame_to_buffer( | |||
buffer: Queue, | |||
decoding_pace_monitor: sv.FPSMonitor, | |||
source_id: Optional[int], | |||
fps: float = 0, | |||
fps: Optional[float] = 0, |
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.
Maybe we should make it None
as default since it`s marked as optional?
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.
👍
@@ -140,6 +161,65 @@ def _assembly_input_image( | |||
) | |||
|
|||
|
|||
def assembly_video_metadata( |
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.
assembly
is noun, are we preferring verbs for method names? (i.e. assemble
instead of assembly
)
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.
👍
return result | ||
|
||
|
||
def _assembly_video_metadata( |
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.
we probably prefer assemble
instead of assembly
in method name
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.
👍
Description
In this PR I try to add video metadata to
workflows
to make it possible for stateful stream- / video- processing blocks to operate.We have two options basically:
WorkflowImage
inputThe latter is more elegant imo, does not break bckw compatibility and is also a proof that adding new types of inputs (batch of text data to process by LMM model) will be easily possible.
Type of change
Please delete options that are not relevant.
How has this change been tested, please provide a testcase or example of how you tested the change?
YOUR_ANSWER
Any specific deployment considerations
For example, documentation changes, usability, usage/costs, secrets, etc.
Docs