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

ENH: Backend Annotation Restructuring #458

Open
1 of 3 tasks
czaloom opened this issue Feb 28, 2024 · 0 comments
Open
1 of 3 tasks

ENH: Backend Annotation Restructuring #458

czaloom opened this issue Feb 28, 2024 · 0 comments
Assignees

Comments

@czaloom
Copy link
Collaborator

czaloom commented Feb 28, 2024

Feature Type

  • Adding new functionality to valor

  • Changing existing functionality in valor

  • Removing existing functionality in valor

Problem Description

Query solving is complex as a result of a cycle that is created in the table graph by the ground truth and prediction tables.

Feature Description

By doing the following we simplify the table graph and enable better support for generating queries.

  • Remove GroundTruth Table

  • Remove Prediction Table

  • Add geometry linker table (similar to how embedding is implemented)

  • Add metadata linker table

  • Update annotation table

    • Add optional score
    • Add label id
    • Add geometry_id
    • Add metadata_id
    • Remove bounding_box, polygon, multipolygon, raster
    • Remove metadata

Predictions are distinguished from Ground Truths by the presence of a model definition.

Additional Context

This is setting the stage for nested queries that will allow complex user requests such as.

evaluation_filter = [
  GroundTruth.labels.in_([Label("class", "swimmer")]),
  Datum.where(GroundTruth.labels.in_([Label("class", "boat")])),
]

This is most easily accomplished when annotation, groundtruth and prediction are all represented the same table as they already share identical relationships.

@czaloom czaloom self-assigned this Feb 28, 2024
@czaloom czaloom changed the title ENH: SQL Table Restructuring ENH: Backend Annotation Restructuring Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant