-
Notifications
You must be signed in to change notification settings - Fork 17
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
Segmentation fault in python package #192
Comments
Hi @Milad4849 , Thanks a lot for the suggestion. We now tried to resolve the error by doing it in a GPU node and loading CUDA packages. There are no more errors popping up. However, it can still not perform the
The The
Other than segmentation, the rest of the steinbock functions seem to work quite well, e.g., measuring intensities/neighbors and exporting csv. |
Hi @ynanli, I assume you are installing steinbock as a Python package, instead of using the steinbock Docker container. If you do so, you need to make sure that deepcell and tensorflow packages (and potentially the GPU driver/CUDA library versions and the GPU) are compatible. It is likely that the original error you observed was because your tensorflow package was linked against CUDA (typical on cluster environments with GPU support), but you didn't load the CUDA module on the machine. This you correctly resolved by loading the CUDA module. The current error likely appears because of package version incompatibilities in your environment. Could you please let us know what versions of tensorflow ( Another way this might go wrong is that by loading the CUDA module on your cluster, you implicitly load some tensorflow module "over" the tensorflow package installed in your environment, causing incompatibilities. It may be a good idea to involve your system administrator at this point. Alternatively, you could use the steinbock Docker container (GPU-enabled or not), or try running steinbock with Singularity (if your cluster does not support docker; undocumented & untested, but should work). |
Hi @jwindhager, Thanks for the information. Here I provide the package versions here:
The GPU model is Nvidia GTX 1080 Ti. You got us. The Docker is not supported in our cluster. Thanks for the suggestion with Singularity. Do you think it would work by installing with the Singularity file and running it without internet access? Thanks a lot!! |
I don't think that this would explain the segfault, but you will indeed need to download the model locally in case you don't have an internet connection. You can have a look how the this is solved in the steinbock Docker container (which ships with a copy of the model): Lines 167 to 168 in bc10207
Then, if you use the steinbock Python package on the command line, you can specify the If you use the steinbock Python package from within a Python script/notebook, you can use the optional steinbock/steinbock/segmentation/_cli/deepcell.py Lines 148 to 158 in bc10207
In theory, using steinbock with Singularity should work, but is untested (#159). Maybe the current maintainer of steinbock, @Milad4849, can comment on whether this will be tested anytime in the foreseeable future? Otherwise, if you are willing to give this a try, it would be very helpful to know if this works for you! |
Closing due to inactivity |
Hi,
I am trying to use steinbock in HPC, which is installed in a python 3.8 conda environment. The steinbock and the dependencies are installed through pip and the requirement.txt provided.
https://github.com/BodenmillerGroup/steinbock/blob/main/requirements.txt
However, I am somehow stuck in the segmentation step with no mask images generated.
May I ask what might be the problem?
Many thanks!!
The text was updated successfully, but these errors were encountered: