-
Notifications
You must be signed in to change notification settings - Fork 414
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
Save Files as *.npy output from Jupyter Notebook not generated #894
Comments
I've noticed the exact same thing - Salient package versions:
Thanks! |
Good to know it's not just a local issue in that case, thanks for your comment! Indeed, However, I think this is to do with my images as they are stitched images taken with a confocal microscope. It isn't an issue for me though, as I am only concerned with obtaining the masks and .npy files. I've run similar images using the Jupyter notebook code to implement Cellpose 2.0 and have not had this issue with the .npy files happen before. |
Ill look into this |
Should be fixed with #932 |
I am trying to run Cellpose 2.0 through a Jupyter notebook (have used the same one previously without issue and have not changed any code). The block dedicated to generating the .npy files runs without error, but the .npy files are not being saved to the google drive folder with the source images (nor anywhere else for that matter). I require the .npy files as some manual annotation is still necessary.
The issue is observed after executing the following code block in a Jupyter notebook after running the Custom model:
from cellpose import io
io.masks_flows_to_seg(images, masks, flows, diameter*np.ones(len(masks)), files, [chan,chan2])
The subsequent code block works just fine and generates the png/tif files etc. as required without issue:
io.save_masks(images, masks, flows, files, channels=[chan, chan2], png=True, # save masks as PNGs and save example image tif=True, # save masks as TIFFs save_txt=True, # save txt outlines for ImageJ save_flows=False, # save flows as TIFFs save_outlines=False, # save outlines as TIFFs )
Has anyone else experienced this issue? Or is there a workaround? I am running the segmentation on local cpu in the interim, however this is much more time consuming. Any feedback or input is much appreciated, thanks!
The text was updated successfully, but these errors were encountered: