trackmate-sc / trackmate-cellpose Goto Github PK
View Code? Open in Web Editor NEWTentative Cellpose integration in TrackMate.
License: GNU Affero General Public License v3.0
Tentative Cellpose integration in TrackMate.
License: GNU Affero General Public License v3.0
Hi @tinevez ,
here are some observations from trying out the omnipose detector using "TrackMate-Cellpose-0.1.3-SNAPSHOT.jar" on macos.
In a fresh python=3.10
conda environment:
pip install omnipose==0.3.6
(the documentation says the plugin is compatible with 0.3.6 but not with 0.4.4)Results in "could not find results file".
When executing the command shown in a terminal (with omnipose
activated) I get:
File "/Users/malbert/miniconda3/envs/omnipose/lib/python3.10/site-packages/omnipose/main.py", line 1, in
from cellpose.main import main
ModuleNotFoundError: No module named 'cellpose.main'
Indeed it seems that code in the wheel shipped over pypi
tries to import cellpose
instead of cellpose_omni
.
pip install omnipose
, which installed omnipose==0.4.4
It works 🎉
When segmenting images both with a pretrained model and a custom model, it shows sensible results:
I also tried for multichannel images and the field "channel to segment" seems to work properly (tried in combination with optional second channel: 0 none)
Hello!
I am having an issue with the Trackmate cellpose integration. I've tried running it on WIndows and Ubuntu with GPU, as well as Macintosh without GPU. I get the same error every time. Cellpose itself works fine through conda, just not the trackmate plugin.
I tried the LoG detector and that one seems to be fine, so I think it is specific to cellpose?
Thanks for any advice! Can't wait to see if this tool will work for this project!
Using built-in defaults.
Exception in thread "Wizard exec thread" java.lang.NoClassDefFoundError: fiji/plugin/trackmate/detection/LabeImageDetectorFactory
at fiji.plugin.trackmate.cellpose.CellposeDetector.process(CellposeDetector.java:295)
at fiji.plugin.trackmate.TrackMate.processGlobal(TrackMate.java:402)
at fiji.plugin.trackmate.TrackMate.execDetection(TrackMate.java:371)
at fiji.plugin.trackmate.gui.wizard.descriptors.ExecuteDetectionDescriptor.lambda$getForwardRunnable$0(ExecuteDetectionDescriptor.java:55)
at fiji.plugin.trackmate.gui.wizard.WizardController$1.run(WizardController.java:191)
Caused by: java.lang.ClassNotFoundException: fiji.plugin.trackmate.detection.LabeImageDetectorFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
... 5 more
See e.g.
Minh-Son Phan found a fix.
It seems to always give me ‘Found 0 spots’ and Java error:
java.lang.IllegalArgumentException: Stack argument out of range: 1
at ij.ImageStack.getProcessor(ImageStack.java:310)
at net.imglib2.img.imageplus.ShortImagePlus.(ShortImagePlus.java:98)
at net.imglib2.img.ImagePlusAdapter.wrapShort(ImagePlusAdapter.java:172)
at net.imglib2.img.ImagePlusAdapter.wrapLocal(ImagePlusAdapter.java:102)
at net.imglib2.img.ImagePlusAdapter.wrap(ImagePlusAdapter.java:74)
at net.imglib2.img.ImagePlusAdapter.wrapImgPlus(ImagePlusAdapter.java:91)
at fiji.plugin.trackmate.util.TMUtils.rawWraps(TMUtils.java:142)
at fiji.plugin.trackmate.TrackMate.execDetection(TrackMate.java:356)
at fiji.plugin.trackmate.detection.DetectionUtils$1.run(DetectionUtils.java:134)
I am using 16-bit image stack, red channel. Cells ranging from 50-100px.
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.