Open comatose-tortoise opened 5 months ago
Hi @comatose-tortoise ,
Could you try deleting the directory at $HOME/.cache/napari-segment-anything
?
Your weights could have been corrupted by closing Napari or a crash during the download, and now it's loading corrupted weights and crashing.
Hi @JoOkuma
I'm having a similar problem I'm afraid - clean environment with just napari and napari-segment-anything in, using pyqt5 backend and Mac M1/Monterey 12.5.
I tried deleting the cache as described above but it didn't help - the behaviour is that after cache deletion and opening plugin from napari plugins menu, SAM layers are generated and download initiates. Once the download completes, napari crashes with no error message. Following this, napari always crashes instantly when Segment Anything is selected from the plugins menu.
The behaviour is the same both from the command line and through the napari GUI.
Let me know if you need more information from me!
Many thanks, Siân
Hi @superresolusian , could you try the solution on #27 since you're using an M1 laptop?
Hi @JoOkuma - just tried that (installed into the napari-segment-anything environment I created previously), same problem unfortunately, just crashing without giving any error messages. It's definitely a Mac thing, I tried the recommended install on a Windows machine and it worked fine. So I do now have a Windows machine it works on so I can test my data now, but happy to try any recommended fixes/provide more information on the Mac side if it's helpful for debugging from your end :)
Sonoma 14.4 M3 Max
Tried running this in three different conda envs, with both the dev version and standard version. One of the envs is a completely clean env with only Napari and napari-segment-anything installed.
When I click on the plugin in the plugin dropdown, Napari shuts down with the error message in the clean env being:
But that warning does seem to have anything to do with the closing of Napari as far as I can tell.