-
Notifications
You must be signed in to change notification settings - Fork 133
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
Sv detections in core blocks #392
Sv detections in core blocks #392
Conversation
@@ -93,10 +129,11 @@ def anchor_prediction_detections_in_parent_coordinates( | |||
|
|||
def anchor_detections_in_parent_coordinates( |
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.
[loud thinking] what happens with parent detection when we want to modify a detection? is not that expected that when we shift or filter - the exact same thing happens for parent?
could we even address this with sv.Detections
? at first, I thought about having it nested somehow, but that seems to be hacky and unclear as the idea. Getting into conclusion that maybe we should just keep shift_x, shift_y
as metadata of each detection and only execute this op when needed (basically the only need is while output construction) - then the processing gets more light-weight, as we do not need to perform laborious ops each step
inference/core/workflows/core_steps/transformations/detection_filter.py
Outdated
Show resolved
Hide resolved
inference/core/workflows/core_steps/transformations/detection_filter.py
Outdated
Show resolved
Hide resolved
tests/workflows/unit_tests/core_steps/transformations/test_crop.py
Outdated
Show resolved
Hide resolved
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 need to get rid of outputs like parent_id
, image
, prediction_type
from blocks:
- YoloWorld
RoboflowInstanceSegmentationModelBlock
RoboflowKeypointDetectionModelBlock
RoboflowObjectDetectionModelBlock
BarcodeDetectorBlock
QRCodeDetectorBlock
as those can be hidden within sv.Detections
the same applies for detections consensus - but not sure of that one was changed
81b0ee8
to
17b69fb
Compare
…etections; refactor all blocks that produce predictions; refactor RoboflowKeypointDetectionModelBlock to include all properties of keypoints within sv.Detections.data
f4967f5
to
125570b
Compare
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.
LGTM, but please make changes to explicitly require keys that are not optional to avoid silent contract break
e32e349
into
feature/sv_detections_in_workflows
Description
Migrate blocks to use sv.Detections for storing results of inference.
Non-standard fields (i.e.
key-points
,parent_id
, etc.) are stored indata
supervision added to list of dependencies.
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?
Workflows created to test each block
Any specific deployment considerations
N/A
Docs
Docs need to be updated