-
Notifications
You must be signed in to change notification settings - Fork 392
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
Undeterministic segmentation on with different instances of model #91
Comments
Sorry, I'm not sure I understand. There should not be any randomness in that function call (right @carsen-stringer ?). |
As I expect there should be no randomness. But I found that I got different result in notebook and in gui (my one). Then in test I found that I can reproduce this in notebook. |
Any information? |
In the notebook you are running with diameter=None so it is estimating the diameter for you. In the GUI are you also using the "calibration" button to get the diameter? I don't understand how it could be different in the same notebook with the same code, can you provide more information if you are still having this issue? |
I also do not understand this. But I notice that problematic runs take much longer time (9 seconds against 90-160 seconds). I do not have any idea how debug this. But maybe You have idea why wrong calculation in current version takes longer time? |
I check this on second computer (both ubuntu) and same problem (different segmentation form different instance of model for same file) shows. |
I have seen similar non-determinism in some unit tests I have, which makes them flaky. It's often on just small, isolated groups of pixels near segment boundaries. From apache/mxnet#13829 (comment), it seems that mxnet autotuning can be non-deterministic. Setting the following during my tests has fixed my problem: MXNET_CUDNN_AUTOTUNE_DEFAULT=0 |
thanks @chrisroat , closing this for now, perhaps the torch version doesn't have this problem |
I try to create cellpose plugin to my tool https://github.com/4DNucleome/PartSeg_cellpose I found that In some scenario different instances of cellpose model returns different predictions. I try to prepare code which deterministic reproduce this, but not always next instance of model fail. I need to recreate it again in third cell to got this result.
But in my plug-in this happens always.
It is possible to fix it?
img02.png
is from your example notebook.The text was updated successfully, but these errors were encountered: