-
Notifications
You must be signed in to change notification settings - Fork 102
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
Crashing during inference on Apple M2 Max #1647
Comments
Hi @uklibaite, It looks like this is the main error:
This is currently a bug in the Mac TensorFlow working differently than Windows/Linux in how it handles empty tensors. We have an issue tracking this (#1100 (comment)) and an in-progress PR to fix it (#1547). We'll keep you updated once the fix is ready for testing! Talmo |
Hi Following the post. |
Hi! I am having the same error using a Appl M2 pro! Is there any solution? Thank you!!! |
Hi folks, Just to update with a quick comment: we will revisit this after the v1.4 release (one PR left!) which will also update TensorFlow versions and change the underlying behavior. We'll take another pass at this after v1.4, but if the fix requires a big redesign of the TensorFlow backend (which is what present evidence points to), it might need to wait until we fully switch over to our new PyTorch backend in the coming months. We'll keep everyone updated here and this issue pinned until either path is clear. Sorry about that! Talmo |
Just chiming in here to say that I recently acquired an M3 pro and I ran into the same error with a top down model. Prediction runs for maybe ~20 minutes or so before throwing the error. |
sleap crashes during inference of entire video (even short video) but runs inference on a small number of suggested frames. Samples during training and these small inference batches look good.
Inference starts and the count of inferred frames increases (then sometimes the speed of inference appears to double shortly before a crash). The popup says there is probably more info in the command line (posted below).
Expected behaviour
Inference running normally (oddly it did run once all the way through a movie that was 180000 frames).
If relevant - this happens both when tracking a simple movie with a single animal or when tracking about 5 individuals. Training runs normally.
Actual behaviour
Command line outputs for training and inference below.
Your personal set up
I installed using the mamba instructions for apple silicon (M2 Max). I use conda activate sleap to load the environment.
OS:
macOS Sonoma 14.2.1
Version(s):
Environment packages
Logs
Screenshots
How to reproduce
The text was updated successfully, but these errors were encountered: