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

feat(front): Create pre-annotation #58

Merged
merged 31 commits into from
Jan 31, 2024
Merged

Conversation

timothee-LJN
Copy link
Contributor

@timothee-LJN timothee-LJN commented Jan 25, 2024

This PR integrates the Pre-annotation feature:

  • User can switch the Pre-annotation space feature on and off
  • User can filter objects in the Pre-annotation table with a confidence slider
  • User can reject or accept objects from the Pre-annotation table
  • Current object selected in the Pre-annotation space is highlighted on ImageCanvas

How the data is processed:

  • The Pre-annotation table is selected with source="Pre-annotation" in db.json (ItemObject.source_id)
  • Accepted objects are flagged with review_state="accepted" in Pre-annotation table and copied to Ground Truth table
  • Rejected objects are flagged with review_state="rejected" in Pre-annotation table
  • Objects flagged as accepted or rejected are no longer suggested in the Pre-annotation space
image

@timothee-LJN timothee-LJN added the enhancement New feature or request label Jan 25, 2024
@timothee-LJN timothee-LJN self-assigned this Jan 25, 2024
@timothee-LJN timothee-LJN marked this pull request as draft January 25, 2024 10:22
@cpvannier

This comment was marked as resolved.

@cpvannier cpvannier added the scope: front Related to Pixano frontend label Jan 25, 2024
@cpvannier cpvannier added this to the Pixano 0.5.0 milestone Jan 25, 2024
@timothee-LJN

This comment was marked as resolved.

@timothee-LJN timothee-LJN marked this pull request as ready for review January 29, 2024 16:56
@timothee-LJN

This comment was marked as resolved.

@cpvannier

This comment was marked as resolved.

- Add ItemObject review_state attribute in backend
- Rename ItemObject preAnnotation property to review_state in frontend
- Update dataset.update_table() to create columns for new base fields like review_state in addition of new features
Replace all instances of gray colors by slate colors for consistency, as mentioned in #58 (comment)
cpvannier and others added 2 commits January 30, 2024 17:07
Use Sketch template as guideline for how to display scene and object features.
Display image metadata in the same way for consistency.
@timothee-LJN timothee-LJN merged commit 9c22ab9 into develop Jan 31, 2024
5 checks passed
cpvannier added a commit that referenced this pull request Feb 15, 2024
* feat(front): Implement new design

* refactor(front): Use generic form component to create new object

* feat(front): Pre annotation layout

* feat(front): Add disabled prop to PrimaryButton and bind isFormValid to PrimaryButton in PreAnnotation

* fix(front): Refactor form inputs and add objectProperties binding

* feat(front): Add switch to toggle preannotation pannel

* feat(front): Pass objects to pre annotation (mocked)

* feat(front): Highlight object being annotated

* feat: Add initial values to form inputs

* feat(front): Add or remove object when clicking buttons

* feat(front): Display only object matching confidence slider

* feat: Copy object in GT when pre annotation is accepted

* feat(front): Flag rejected pre annotation as rejected

* feat: Filter objects when they are annotated

* refactor(front): Simplify API for annotation

* feat(front): Save updated properties

* feat: Save updated annotations

* feat: Do not display rejected bbox

* fix(front): Fix filtering pre annotation

* fix: Use filtered objects to mutate store

* fix(back): Fix null value for number features

See pixano/pixano-project-manager#27 for more information on this issue

* fix(back): Fix formatting

* feat(back): Add review_state to ItemObject

- Add ItemObject review_state attribute in backend
- Rename ItemObject preAnnotation property to review_state in frontend
- Update dataset.update_table() to create columns for new base fields like review_state in addition of new features

* fix(back): Fix formatting

* fix(front): Fix colors

Replace all instances of gray colors by slate colors for consistency, as mentioned in #58 (comment)

* fix(front): Fix language and case of SaveShapeForm

As mentioned in #58 (comment)

* fix(front): Fix display of scene and object features

Use Sketch template as guideline for how to display scene and object features.
Display image metadata in the same way for consistency.

* feat(front): Update mask opacity when switching to pre annotation

* fix(front): Clicking on model run does not hide pre annotation boxes

---------

Co-authored-by: Corentin Vannier <corentin.vannier@cea.fr>
@cpvannier cpvannier deleted the feat/pre-annotation branch February 20, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scope: front Related to Pixano frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants