Removing annotations also removed the image

If this is a bulk import report, send the spreadsheet to services@wildme.org with the email subject line matching your bug report

In which Wildbook did the issue occur? Internet of Turtles

What operating system were you using? (eg. MacOS 10.15.3) MacOS

What web browser were you using? (eg. Chrome 79) Chrome

What is your role on the site? (admin, researcher, etc) researcher

What happened? I removed 2 annotations and the image disappeared.

What did you expect to happen? I expected the annotations to be removed but the image should remain

What are some steps we could take to reproduce the issue? See link: Internet of Turtles

Hi @GoBeach

Quick summary: this is normal when an image has >=2 animals (and >=2 annotations), forcing multiple Encounters to reference a single image. Deleting an annotation off one Encounter leaves the image and annotations correctly referenced off the others. Often the Encounter is deleted after the erroneous annotation is removed (but not always).

Longer explanation:

This can happen when an image is used in two or more Encounters because it has 2 or more annotations, such as two sea turtles in the image. The essential logic we use is that an Encounter should have annotations for only one sea turtle, and all annotations should only represent that individual turtle. Where an image has 2 or more sea turtles, two or more Encounters are required, and how the system handles annotation deletion when an image can span >=2 Encounters can vary.

If an image has only one annotation (green bounding box) and the image for that annotation (e.g., turtle #1) does not have an annotation on another Encounter, then when the user intentionally deletes the annotation we keep the image on the Encounter and reset it to no bounding box. This was the behavior I think you were expecting, and I verified it is still working. The expectation is this is a case where the AI got the bounding box wrong, and the user wants to delete and redraw it.

If an image has multiple annotations (green bounding boxes) and the image for that annotation (e.g., turtle #1) has an annotation on another Encounter (e.g., turtle #2), then when the user deletes an annotation, both the image and annotation are removed from Encounter #1 (which no longer has a connection that image via na annotation) but the image and second annotation remain on Encounter #2. Generally the expectation is that the user will delete the Encounter, but there are cases where a new image might be uploaded (e.g., the original image was wrongly assigned). As well, there may be other images on the Encounter that do correctly represent the intended individual.

All of this is to say, there’s some complex logic that goes into what should happen when an annotation is removed from a complex image and set of Encounters. It handles many use cases but not all. I went ahead and tested the expected behavior, and it looks like it is working normally.

Thank you,
Jason

1 Like

Hi Jason,
There has been at least one situation where there were 2 bounding boxes (annotations) and only 1 image. Both annotations were system-generated. I removed both annotations, but when I removed the second one, the image disappeared.

I don’t normally use images with more than one animal in it - I’ll duplicated these photos and crop to only one animal to minimize any issues/confusion.

The behavior you describe above works about 99% of the time, it’s that 1% when the image disappears that I’m referring to.

I can keep an eye out and flag any future issues - but I can probably point you to a couple now if you’d like to take a look.

Thanks,
Cheryl (aka GoBeach)