Skip to content

Post processing mask refinment #134

Description

@qgeissmann

ATM, when we want to annotate more images, we use flatbug to generate candidate annotations and then correct them, so we want high-quality masks (there are other contexts in which we want high-quality masks).
What happens now, is we have poor mask resolution for small objects.
For instance, the grid here is 500 px.

Image

In my use case, either I spend a lot of time fixing masks by hand or axxept low quality, but then poison the dataset...

For cases where we need high quality mask, it would be good to have a post-processing option.

For another project, I managed to get better masks by

  1. finding instances
  2. cropping instances as a square with a + a margin as a square
  3. scalling the square to 1024 px
  4. running the same yolo model on this image
  5. if finding a new mask for this instance (e.g. based on iou), keep the next mask (else fall back on old one)

Possibly we can work on subtleties such as masking non-focus detections

I propose, for now, to implement this as a separate tool, we can merge later if it makes sense...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions