cellpose icon indicating copy to clipboard operation
cellpose copied to clipboard

[BUG]can't save mask file

Open Lu-Ying04 opened this issue 7 months ago • 5 comments

Describe the bug After annotating the image using CellPose2 version, I clicked to save mask as PNG/tif, but the image was not saved

Perhaps I am not familiar with the principle of saving mask files in CellPose2

Lu-Ying04 avatar Jun 12 '25 11:06 Lu-Ying04

The file is saved in whatever folder the original image is loaded from. Do you get an error message in the command window?

mrariden avatar Jun 12 '25 15:06 mrariden

No, no images were added to the original folder, and the Windows command window did not display any error messages

Image

Lu-Ying04 avatar Jun 13 '25 01:06 Lu-Ying04

Image

Lu-Ying04 avatar Jun 13 '25 01:06 Lu-Ying04

@Lu-Ying04 do you have GPU in your workstation? I saw that you checked the box of GPU to run the cpsam model

Jiadalee avatar Jun 13 '25 19:06 Jiadalee

@Lu-Ying04 do you have GPU in your workstation? I saw that you checked the box of GPU to run the cpsam model

Yes,I have an NVIDIA 5060 GPU laptop

Lu-Ying04 avatar Jun 14 '25 01:06 Lu-Ying04

@Lu-Ying04 I've not been able to reproduce this bug. Can you make sure that you're not using a folder that is linked to a file backup like OneDrive to make sure that the folder and image is locally accessible?

Some other users were not able to save images if the filename contained non-ascii characters, you can try to renaming/moving the image if that is the case.

mrariden avatar Jun 25 '25 20:06 mrariden

@mrariden OK,Thank you, I have resolved this bug after changing the folder path

Lu-Ying04 avatar Jun 26 '25 01:06 Lu-Ying04

@Lu-Ying04 Good to hear, can you pinpoint if it was something related to character type in the path? Or maybe some kind of restricted folder?

Just trying to collect information to help the next person

mrariden avatar Jun 26 '25 13:06 mrariden

@mrariden I tried to save the mask file in an all English directory, and the result was successful. It seems to be a character type issue

Lu-Ying04 avatar Jun 27 '25 01:06 Lu-Ying04