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

Issues related to classification task #69

Open
miaroe opened this issue Nov 18, 2023 · 0 comments
Open

Issues related to classification task #69

miaroe opened this issue Nov 18, 2023 · 0 comments

Comments

@miaroe
Copy link

miaroe commented Nov 18, 2023

Annotated images does not show in list view for classification task

Solution:

  • In annotationweb/views.py add label to query:
    imageannotation__keyframeannotation__imagelabel__label__in=labels_selected,

User frame selection logic is faulty in regard to labeling an entire sequence

Goal functionality: Label an entire video without manually selecting key frames

When creating a new task, if the box for user frame selection is not ticked, the annotation task is marked as finished because "This image sequence has no key frames. An admin must select key frames before annotating."

In annotationweb.js there exists logic for setting the last frame as a key frame which will make it possible to classify the video as a whole with one label. At the moment, the logic is set up as follows:

if(!user_frame_selection && annotate_single_frame && frames_to_annotate.length === 0) {
        // Select last frame as target frame
        frames_to_annotate.push(nrOfFrames-1);
    }

At the moment, as long as User frame selection is ticked the annotations will be saved in the table classification_imagelabel when key frames are selected manually by user. However, due to the logic above if a key frame is not selected only the annotation will be saved, not a key frame which means the label is not saved, and it will not show up in the list view as annotated.

Temporary solution:

  • remove negation from user_frame_selection --> by ticking the boxes for User frame selection and Annotate single frame it will be possible to label the entire sequence as the last frame will be selected as a key frame

Problem with temporary solution that need to be addressed:

  • makes no logical sense

When n key frames are selected, the video is listed n times in list view

At the moment, the query used to generate the list view for the classification task will retrieve all key frame annotations, while not considering if they belong to the same sequence. There is already added information about the number of key per annotation, so this seems unnecessary.

Suggested solution:

  • When multiple key frames are selected in one video the list view should only show one of the annotations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant