LUNGMASK in Lung CT segmenter EOF error

BM167
Thu, 07 Sep 2023 14:52:49 +0000
Support

Lung CT segmenter

I am trying to segment lung CT into lobes (Using lung mask LTRC lobes_231). Using slicer 5.4.0.

No matter how many times I reloaded lungmask file, there still seems to be a problem with a corruption of the file.

I have Pytorch (torch and torch vision properly installed (and reinstalled) using pytorch utilities) as well as CU118.

Python Console shows the following:

Any ideas?
Thanks very much.

Lungmask version: 0.2.16
[Python] Failed to compute results: unexpected EOF, expected 3373102 more bytes. The file might be corrupted.
Traceback (most recent call last):
File “C:/ProgramData/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/LungCTAnalyzer/lib/Slicer-5.4/qt-scripted-modules/LungCTSegmenter.py”, line 1002, in runProcessing
self.logic.applySegmentation()
File “C:/ProgramData/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/LungCTAnalyzer/lib/Slicer-5.4/qt-scripted-modules/LungCTSegmenter.py”, line 2374, in applySegmentation
inferer = LMInferer(modelname=‘LTRCLobes’, fillmodel=‘R231’)
File “C:\ProgramData\slicer.org\Slicer 5.4.0\lib\Python\Lib\site-packages\lungmask\mask.py”, line 119, in init
self.model = get_model(self.modelname, modelpath)
File “C:\ProgramData\slicer.org\Slicer 5.4.0\lib\Python\Lib\site-packages\lungmask\mask.py”, line 50, in get_model
state_dict = torch.hub.load_state_dict_from_url(
File “C:\ProgramData\slicer.org\Slicer 5.4.0\lib\Python\Lib\site-packages\torch\hub.py”, line 750, in load_state_dict_from_url
return torch.load(cached_file, map_location=map_location)
File “C:\ProgramData\slicer.org\Slicer 5.4.0\lib\Python\Lib\site-packages\torch\serialization.py”, line 815, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File “C:\ProgramData\slicer.org\Slicer 5.4.0\lib\Python\Lib\site-packages\torch\serialization.py”, line 1051, in _legacy_load
typed_storage._untyped_storage._set_from_file(
RuntimeError: unexpected EOF, expected 3373102 more bytes. The file might be corrupted.
[VTK] Warning: In vtkMRMLSegmentationDisplayNode.cxx, line 295
[VTK] vtkMRMLSegmentationDisplayNode (0000015A41082A30): vtkMRMLSegmentationDisplayNode::GetSegmentDisplayProperties: no display properties are found for segment ID=, return default

3 posts - 2 participants