-
Notifications
You must be signed in to change notification settings - Fork 352
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
Maximum number of objects #132
Comments
Oh that's interesting. I'm guessing you'd need to go through the code and change all the uint16 datatypes to uint32. If you're lucky, the network itself won't care about the datatype, and it is actually just the mask reconstruction in dynamics.py that you need to change (I assume you aren't training on images with more than 2^16 manually created labels!). Of course, a workaround would be to subdivide your images, but it is tricky to do that without sacrificing cells to the newly imposed boundaries. |
Hello, cv2.imwrite(filename, arr) Any ideas are appreciated, cellpose proves to be great, but sadly I need to process large images. Thank you, |
@papalagirauscher You are right, the flows array is float32, which I think is already compatible with uint32 masks. As to your error, I think this is due to trying to save as a PNG, which limits the bit depth. Try changing this to a TIF, for example by editing the defaults in the |
I am having problems with saving the output of Cellpose:
OverflowError: cannot serialize a string larger than 4GiB
It seems that the _seg.npy file is limited to 4Gb. It is something that could be fixed in the future?
Also what is the maximum number of objects that can be predicted? It seems the 2^16 is the max.
This would be nice to increase this for large data-sets.
Thanks a lot,
Jon
The text was updated successfully, but these errors were encountered: