LUNGMASK in Lung CT segmenter EOF error

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/ 5.4.0/”, line 1002, in runProcessing
File “C:/ProgramData/ 5.4.0/”, line 2374, in applySegmentation
inferer = LMInferer(modelname=‘LTRCLobes’, fillmodel=‘R231’)
File “C:\ProgramData\\Slicer 5.4.0\lib\Python\Lib\site-packages\lungmask\”, line 119, in init
self.model = get_model(self.modelname, modelpath)
File “C:\ProgramData\\Slicer 5.4.0\lib\Python\Lib\site-packages\lungmask\”, line 50, in get_model
state_dict = torch.hub.load_state_dict_from_url(
File “C:\ProgramData\\Slicer 5.4.0\lib\Python\Lib\site-packages\torch\”, line 750, in load_state_dict_from_url
return torch.load(cached_file, map_location=map_location)
File “C:\ProgramData\\Slicer 5.4.0\lib\Python\Lib\site-packages\torch\”, line 815, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File “C:\ProgramData\\Slicer 5.4.0\lib\Python\Lib\site-packages\torch\”, line 1051, in _legacy_load
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

Lungmask works well on our systems. That is what I get when I use the CT Chest demo dataset and 5.4.0 with lungmaskLCTRlobes:

(Windows gaming laptop with an NVIDIA Geforce GTX 1060)

My recommendation would be to delete everything and start from scratch again - Install 3D Slicer, Pytorch via the Pytorch extension, restart Slicer, and then install Lung CT Analyzer. Some files may be corrupted.