Skip to content

CellPose plugin error #264

@MikeLippincott

Description

@MikeLippincott

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions