Skip to content
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

RunCellPose Error #243

Open
ErinWeisbart opened this issue Apr 5, 2024 · 6 comments
Open

RunCellPose Error #243

ErinWeisbart opened this issue Apr 5, 2024 · 6 comments

Comments

@ErinWeisbart
Copy link
Member

ErinWeisbart commented Apr 5, 2024

Error while processing RunCellpose: 
(Worker) FileNotFoundError [Errno 2] 
No such file or directory: '/Users/eweisbar/Documents/CPoutput/.cellprofiler_temp/c564a507-17e5-4256-837d-6e1d59892524/img/c564a507-17e5-4256-837d-6e1d59892524_seg.npy

Cellpose built 4.2.6 on OS Sonoma and 4.2.5 built on OS Ventura
Latest CellProfiler-plugins commit f5139bf

Run CellPose in Docker, cellprofiler/runcellpose_with_pretrained:0.1

The first image in my run completes but on all subsequent images I get this error.
My output folder does have .cellprofiler_temp in it and it is filling up with HASH/img/ folders with HASH_seg.npy and HASH.tiff files.

@ErinWeisbart
Copy link
Member Author

I'm guessing it has something to do with Run CellPose in Docker because when I run the same pipeline (in docker) with Run Cellpose in local Python environment then it runs just fine.

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/runcellpose-not-working-with-docker/95013/6

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/running-cellpose-with-cell-profiler-using-docker/96022/2

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/install-and-run-runcellpose-on-cellprofiler/96536/4

@YunxiaoWangwww
Copy link

Error while processing RunCellpose: 
(Worker) FileNotFoundError [Errno 2] 
No such file or directory: '/Users/eweisbar/Documents/CPoutput/.cellprofiler_temp/c564a507-17e5-4256-837d-6e1d59892524/img/c564a507-17e5-4256-837d-6e1d59892524_seg.npy

Cellpose built 4.2.6 on OS Sonoma and 4.2.5 built on OS Ventura Latest CellProfiler-plugins commit f5139bf

Run CellPose in Docker, cellprofiler/runcellpose_with_pretrained:0.1

The first image in my run completes but on all subsequent images I get this error. My output folder does have .cellprofiler_temp in it and it is filling up with HASH/img/ folders with HASH_seg.npy and HASH.tiff files.

I am having exactly the same issue. Have you figured out how to solve it? Thank you!

@emiglietta
Copy link
Collaborator

emiglietta commented Jul 30, 2024

Apparently what happens is that Docker containers ungracefully crash when you exceed the CPU and/or memory usage available for Docker, so no .npy file is created and the module crashes because it doesn't find it.

image

In general, for the pipeline not to crush, you should run it with number of workers <= number of cores. If the pipeline still crashes, it's likely that container memory usage is higher than allocated memory to Docker. This can be increased within Docker Desktop from Settings > Resources:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants