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

Incorporate insights from Cellpose/Carsen #28

Closed
rhoadesScholar opened this issue Feb 8, 2024 · 1 comment · May be fixed by #146
Closed

Incorporate insights from Cellpose/Carsen #28

rhoadesScholar opened this issue Feb 8, 2024 · 1 comment · May be fixed by #146
Assignees
Labels
enhancement New feature or request

Comments

@rhoadesScholar
Copy link
Member

On distance masking:

  • Make distance mask for whole crop (save alongside)
  • Precompute targets?
  • Without distance outside object, no distance mask is needed

Sparse data:

  • Consider using targets:
    • boundary pixels (BCE)
    • flows (MSE)
    • probability (BCE)
    • center prediction

Loss weighting:

  • Sample crops based on organelles
    • Balance sampling instead of balancing loss weights
    • Changing loss weights changes gradient magnitudes constantly which is difficult for Adam optimizer

BCE for binary class predictions --> MSE doesn’t penalize false positives

  • Weight BCE compared to MSE

(Center of object (for flow calculation) is calculated as object-pixel rounded center of mass)
Try 4 convolutions per block in UNet (2x2 —> see CellPose 3)

@davidackerman
Copy link
Collaborator

include Cellpose Unet for #9

@rhoadesScholar rhoadesScholar moved this from Todo to In Progress in DaCapo Hackathon 2024 Feb 21, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in DaCapo Hackathon 2024 Feb 28, 2024
@rhoadesScholar rhoadesScholar linked a pull request Feb 28, 2024 that will close this issue
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
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants