MouseLand / cellpose

a generalist algorithm for cellular segmentation with human-in-the-loop capabilities
https://www.cellpose.org/
BSD 3-Clause "New" or "Revised" License
1.24k stars 359 forks source link

[BUG]: Segmentation fault on mac M1 #939

Closed ElpadoCan closed 1 month ago

ElpadoCan commented 1 month ago

Describe the bug

Initializing cellpose model on mac M1 causes segmentation fault and crashing

To Reproduce

Run following script on mac M1

from cellpose import models
models.Cellpose(gpu=False, model_type='cyto3', device=None)

Terminal output

[1]    63859 segmentation fault  /Users/francesco/.pyenv/versions/miniforge3-latest/envs/acdc-dev/bin/python 

System info

3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:51:49) [Clang 16.0.6 ]
/Users/francesco/.pyenv/versions/miniforge3-latest/envs/acdc-dev
macOS-14.4.1-arm64-arm-64bit
Cellpose version: 3.0.8
ElpadoCan commented 1 month ago

Solved by uninstalling cellpose installed with pip and installing with conda