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

Implement detection #6

Open
11 of 13 tasks
jonasteuwen opened this issue Oct 17, 2023 · 0 comments
Open
11 of 13 tasks

Implement detection #6

jonasteuwen opened this issue Oct 17, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jonasteuwen
Copy link
Contributor

jonasteuwen commented Oct 17, 2023

Is your feature request related to a problem? Please describe.
Currently detection is not supported. Point annotations are a cheaper alternative to creating costly nuclei segmentation annotations and therefore a good alternative. However, some pre- and post-processing is necessary to make use of these point annotations.

Describe the solution you'd like
For the implementation of detection using point annotations, most functionality is already in ahcore. One common approach is to turn point annotations into segmentation masks and treat the problem as a segmentation problem. By post-processing the output of segmentation, point predictions can be extracted. The following features need to be implemented:

  • PointTarget object for varying number (of classes) of points per sample in a batch.
    • PointTarget object should hold coordinates, labels and optionally prediction confidences.
    • PointTarget object should be collateable in dataloader by padding.
  • PointTarget object compatible with Kornia augmentations.
  • Convert point annotations to segmentation masks (Requires upstream changes to DLUP for efficiency).
    • Labels with a fixed radius r.
    • Extend to Labels with other features.
  • Post-processing functionality to extract point positions from segmentation output.
  • Metrics for detection based on distance.
    • Match predictions and targets based on distance matching.
    • Confusion matrix based on TP, FP, (TN) and FN.
    • Classification metrics based on Confusion matrix.
  • Test detection functionalities and add detection example

Describe alternatives you've considered
N/A

Additional context
Might require upstream changes in ConvertAnnotationsToMask in dlup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants