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

CellPose plugin error #264

Open
MikeLippincott opened this issue Dec 6, 2024 · 1 comment
Open

CellPose plugin error #264

MikeLippincott opened this issue Dec 6, 2024 · 1 comment

Comments

@MikeLippincott
Copy link

After trying to run the runcellpose module I get the following error:

 File "/path/to/conda/env/lib/python3.8/site-packages/cellprofiler/gui/pipelinecontroller.py", line 3390, in do_step
    self.__pipeline.run_module(module, workspace_model)
  File "/path/to/conda/env/lib/python3.8/site-packages/cellprofiler_core/pipeline/_pipeline.py", line 1349, in run_module
    module.run(workspace)
  File "/path/to/CP.plugins/CellProfiler-plugins/active_plugins/runcellpose.py", line 612, in run
    if self.use_gpu.value and model.torch:
AttributeError: 'CellposeModel' object has no attribute 'torch'

I had to change
line 567 of runcellpose.py to

if self.use_gpu.value and model.gpu:

and line 612 of runcellpose.py to

if self.use_gpu.value and model.gpu:

I can open a PR to fix these.

I will also open an issue on the CellPose repo requesting less drastic API changes in minor version changes or no version changes.

@MikeLippincott
Copy link
Author

Note: these changes would be for newer versions of CellPose > 3.1.0

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

1 participant