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

Landmark annotation not working on images with no previous annotations, when task and dataset imported from yaml #72

Open
e-platini opened this issue Nov 5, 2024 · 0 comments

Comments

@e-platini
Copy link

e-platini commented Nov 5, 2024

With the landmark annotations, untested with other styles of annotations.

Branch with the import task button:
https://github.com/smistad/annotationweb/tree/feature/import-task

When using the "Import tasks & datasets" functionality and importing a YAML file, if there is no "landmark" object associated with an image, it will be impossible to annotate that image.

When opening the image for annotation, whether from the image list or from clicking on "continue annotation", either of those things will happen:

  • The layout of the page loads but the image does not load
  • The image loads, but when clicking on it to annotate, it does not create a landmark

When clicking on "Save" or "Reject" in such case, it will display an error message top left of the screen:

Save failed
'0'

Here is a very simple yaml file you can import to reproduce the bug (just replace the path to the image):

- model: annotationweb.dataset
  pk: $annotationweb$dataset$1$
  fields:
    name: 'test_no_landmark'
- model: 'annotationweb.label'
  'pk': 1
  fields:
    name: "Lymphocyte"
- model: annotationweb.task
  pk: $annotationweb$task$1$
  fields:
    name: 'test_no_landmark'
    type: landmark
    dataset:
    - $annotationweb$dataset$1$
    label: [1]
    auto_play: false
    show_entire_sequence: true
    large_image_layout: true
- model: annotationweb.subject
  pk: $annotationweb$subject$1$
  fields:
    name: '1'
    dataset: $annotationweb$dataset$1$
- model: annotationweb.imagesequence
  pk: $annotationweb$imagesequence$1$
  fields:
    format: C:\your_path_to_a_random_image\image.png
    subject: $annotationweb$subject$1$
    nr_of_frames: 1
    start_frame_nr: 0
- model: annotationweb.imageannotation
  pk: $annotationweb$imageannotation$1$
  fields:
    image: $annotationweb$imagesequence$1$
    task: $annotationweb$task$1$
    finished: false
    user: 1
    date: 2024-04-22 16:27:04.580249
    rejected: false
- model: annotationweb.keyframeannotation
  pk: $annotationweb$keyframeannotation$1$
  fields:
    frame_nr: 0
    image_annotation: $annotationweb$imageannotation$1$
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