We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a566d8 commit 7bfb390Copy full SHA for 7bfb390
1 file changed
active_plugins/runcellpose.py
@@ -673,6 +673,7 @@ def display(self, workspace, figure):
673
def do_check_gpu(self):
674
import importlib.util
675
torch_installed = importlib.util.find_spec('torch') is not None
676
+ self.cellpose_ver = importlib.metadata.version('cellpose')
677
#if the old version of cellpose <2.0, then use istorch kwarg
678
if float(self.cellpose_ver[0:3]) >= 0.7 and int(self.cellpose_ver[0])<2:
679
GPU_works = core.use_gpu(istorch=torch_installed)
0 commit comments