-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Prediction-level metadata in sv.Detections
#1226
Comments
What we'd need to figure out too, is how two Right now the interactions happens in:
For each respective case, we can follow similar implementations we have for other variables:
|
👍 yeah, haven't thought about that |
Suppose it's metadata about source image. Would merging and keeping a list of |
I would see this issue useful in broader context, not even specifically regarding image, just regarding anything providing context information about the prediction. Specific use-cases: |
Hi @LinasKo and @PawelPeczek-Roboflow 👋🏻
|
Initially I thought we should not touch
regarding sinks - as I believe they are supposed to dump detections one-by-one - we may let people decide if they want to broadcast metadata, conflicts with data keys may be resolved by adding prefix. This is the problem (just the opposite-way-around) that we are facing while having prediction-level metadata and broadcasting them into detection-level |
Re: literal merging & data: we previously spoke that users may add anything they wish into |
happy for that to be the case, as long as user can inject callable changing that behaviour |
|
for this case more reasonable thing to do is probably override, or letting people decide what to do |
I think in places like |
defaults should be there of-course, but I feel like not providing a way to alter the default behaviour as limiter |
If someone has a |
@PawelPeczek-Roboflow, how urgent is it? Do you want us to implement is? Or you or Grzegorz will take care of creating PR? |
well, yes but we cannot predict what the use-cases would be for metadata - hence advocating for exposing a knob for the user |
It is 100% okay. Most of my concerns come down to implementation details. |
ok, so lets resolve as we go |
Hey @PawelPeczek-Roboflow, what was the outcome? Are you using |
not sure why it got closed tbh |
Implemented via #1589 @PawelPeczek-Roboflow, you still need it, you may use it like so: Caveats:
|
cool thanks |
Search before asking
Description
sv.Detections
supports data aligned detection-major (one element for one detection), guarded byPutting prediction in broader context sometimes requires information about the whole prediction. Instances when those would be needed:
sv.Detections
, we would need to broadcast that information into all detections - and (in absence of detections) this may not be possible (yet, would let more gracefulsv.Detections
processing downstream)The solution that probably does not introduce breaking change would be:
Use case
No response
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: