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

lobe segmentation with AI #114

Open
kekebky opened this issue Feb 24, 2025 · 2 comments
Open

lobe segmentation with AI #114

kekebky opened this issue Feb 24, 2025 · 2 comments

Comments

@kekebky
Copy link

kekebky commented Feb 24, 2025

Hello, I am encountering issues with lobe segmentation. My software version is 5.8.0, and I am using a Windows system. Here is the code:[Python] Failed to compute results: Command '['D:/Slicer 5.8.0/bin/../bin\PythonSlicer.EXE', '-m', 'pip', 'install', 'https://github.com/JoHof/lungmask/archive/master.zip']' returned non-zero exit status 1.
Traceback (most recent call last):
File "D:/Slicer 5.8.0/slicer.org/Extensions-33216/LungCTAnalyzer/lib/Slicer-5.8/qt-scripted-modules/LungCTSegmenter.py", line 2324, in applySegmentation
import lungmask
ModuleNotFoundError: No module named 'lungmask'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/Slicer 5.8.0/slicer.org/Extensions-33216/LungCTAnalyzer/lib/Slicer-5.8/qt-scripted-modules/LungCTSegmenter.py", line 1016, in runProcessing
self.logic.applySegmentation()
File "D:/Slicer 5.8.0/slicer.org/Extensions-33216/LungCTAnalyzer/lib/Slicer-5.8/qt-scripted-modules/LungCTSegmenter.py", line 2328, in applySegmentation
slicer.util.pip_install(lungmaskPackage)
File "D:\Slicer 5.8.0\bin\Python\slicer\util.py", line 3942, in pip_install
_executePythonModule("pip", args)
File "D:\Slicer 5.8.0\bin\Python\slicer\util.py", line 3896, in _executePythonModule
logProcessOutput(proc)
File "D:\Slicer 5.8.0\bin\Python\slicer\util.py", line 3862, in logProcessOutput
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['D:/Slicer 5.8.0/bin/../bin\PythonSlicer.EXE', '-m', 'pip', 'install', 'https://github.com/JoHof/lungmask/archive/master.zip']' returned non-zero exit status 1.
[VTK] Warning: In vtkMRMLSegmentationDisplayNode.cxx, line 278
[VTK] vtkMRMLSegmentationDisplayNode (000002BAC31F8470): vtkMRMLSegmentationDisplayNode::GetSegmentDisplayProperties: no display properties are found for segment ID=, return default

@JoHof
Copy link
Owner

JoHof commented Feb 25, 2025

It looks like this is an issue related to Slicer3D and the LungCTAnalyzer that is making use of this package and not an issue with the lungmask package

@kekebky
Copy link
Author

kekebky commented Feb 25, 2025

It looks like this is an issue related to Slicer3D and the LungCTAnalyzer that is making use of this package and not an issue with the lungmask package

Dear teacher, hope this finds you well. As for this problem, I reckon the lung lobe segmentation didn't work out, which caused the subsequent issues. I got an error message after doing the segmentation. Here's my code.

Failed to compute results: Command '['D:/Slicer 5.8.0/bin/../bin\PythonSlicer.EXE', '-m', 'pip', 'install', 'https://github.com/JoHof/lungmask/archive/master.zip']' returned non-zero exit status 1.

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

2 participants