Skip to content

Commit 6570159

Browse files
committed
add troubleshooting
1 parent dc49fe3 commit 6570159

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

documentation/CP-plugins-documentation/runcellpose.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ See [Using plugins - Using Docker](using_plugins.md/#using-docker-to-bypass-inst
66
You can also this module using Cellpose installed to the same Python environment as CellProfiler.
77
See [Using plugins - Installing dependencies](using_plugins.md/#installing-plugins-with-dependencies-using-cellprofiler-from-source) for more information on installing dependencies for CellProfiler plugins.
88

9+
## Troubleshooting
10+
11+
If you are running RunCellpose in a docker and you get an error like this:
12+
`No such file or directory: '/Users/eweisbar/Documents/CPoutput/.cellprofiler_temp/c564a507-17e5-4256-837d-6e1d59892524/img/c564a507-17e5-4256-837d-6e1d59892524_seg.npy`
13+
It is likely an issue with running out of memory in the Docker.
14+
See [this Github issue](https://github.com/CellProfiler/CellProfiler-plugins/issues/243) for more information.
15+
916
## Installing Cellpose in the same Python environment as CellProfiler
1017

1118
We provide some information below about installations that have worked for us.
@@ -67,31 +74,36 @@ pip install mysqlclient==1.4.6 cellprofiler
6774
If you want to use a GPU to run the model (this is recommended for speed), you'll need a compatible version of PyTorch and a supported GPU.
6875
General instructions are available at this [link](https://pytorch.org/get-started/locally/).
6976

70-
1. Your GPU should be visible in Device Manager under Display Adaptors.
77+
1. Your GPU should be visible in Device Manager under Display Adaptors.
7178
If your GPU isn't there, you likely need to install drivers.
7279
[Here](https://www.nvidia.com/Download/Find.aspx) is where you can find NVIDIA GPU drivers if you need to install them.
7380

74-
7581
2. To test whether the GPU is configured correctly:
76-
* Run `python` on the command line (i.e., in Command Prompt or Terminal) to start an interactive session
77-
* Then run the following
78-
```
82+
83+
* Run `python` on the command line (i.e., in Command Prompt or Terminal) to start an interactive session
84+
* Then run the following
85+
86+
```bash
7987
import torch
8088
torch.cuda.is_available()
8189
```
82-
* If this returns `True`, you're all set
83-
* If this returns `False`, you likely need to install/reinstall torch. See [here](https://pytorch.org/get-started/locally/) for your exact command.
84-
* Exit the session with `exit()` then install torch if necessary
85-
```
90+
91+
* If this returns `True`, you're all set
92+
* If this returns `False`, you likely need to install/reinstall torch. See [here](https://pytorch.org/get-started/locally/) for your exact command.
93+
* Exit the session with `exit()` then install torch if necessary
94+
95+
```bash
8696
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
8797
```
88-
If you have a previous version of torch installed, make sure to run `pip uninstall torch` first.
8998

99+
If you have a previous version of torch installed, make sure to run `pip uninstall torch` first.
90100

91101
**NOTE**: You might get a warning like this:
92-
```
102+
103+
```bash
93104
W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
94105
2022-05-26 20:24:21.906286: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
95106
```
107+
96108
If you don't have a GPU, this is not a problem.
97109
If you do, your configuration is incorrect and you need to try reinstalling drivers and the correct version of CUDA for your system.

0 commit comments

Comments
 (0)