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

Use stardist segmentation for ellipsoid fitting #8

Open
stefanhahmann opened this issue Aug 14, 2023 · 1 comment
Open

Use stardist segmentation for ellipsoid fitting #8

stefanhahmann opened this issue Aug 14, 2023 · 1 comment

Comments

@stefanhahmann
Copy link
Collaborator

No description provided.

@stefanhahmann
Copy link
Collaborator Author

stefanhahmann commented Aug 14, 2023

User story

The current implementation of ellipsoid fitting is rather slow (~5 hours for 500.000 spots) and also imprecise. Both is unsatisfiable for a user who wants to run it. Thus, it would be nice, if the ellipsoid fitting could exploit the GPU, if an NVIDIA graphics card is available. I would be desirable to achieve higher performance and more precise results.

Acceptance criteria

Tasks

  • Prototypical testing by https://github.com/Noam-Dori
  • Install GPU drivers
  • One time procedure: download tensorflow engine via the outcommented code
  • Adapth paths to file system
  • Test, if the code runs stabily (multiple times). On the machine of https://github.com/Noam-Dori the segmentation crashed sometimes
  • Partion/crop images before handing them over to prediction. A GPU memory error occurs, if one complete timepoint is processed by stardist at the same time. Partioning and cropping may solve this.
  • Filter StarDist results. In the StarDist 2D ImageJ plugin, there is some post-processing of StarDist results (i.e. non-maximum suppression), which does not exist in the 3D translation and results in too many segments.
  • Integrate loop for multiple timepoints
  • Handle the disk leak C:\User\AppData\Local\Temp\tensorflow_* -> delete those files after running (it is a downloaded library from online used in processing)
  • Add method to derive variance/covariance params from set of Pixels, cf.: Compute ellipsoid for segmentation result #9
  • Integrate that into the plugin

Additional information

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