Open puallee opened 4 months ago
Hi! Can you please answer these questions and I can try and help you.
Can you share what is the full output in the terminal where you ran the "medpseg" command?
Have you downloaded the network weights? They might be corrupted, I suggest downloading them again.
The DICOM/Nift files open in software such as ITK-Snap or 3D Slicer without errors?
Yes, the full output in the terminal is: Click start processing to start.
ERROR: RuntimeError: unexpected EOF, expected 39359 more bytes. The file might be corrupted.
Aborting processing! This was most likely an error regarding the data input or missing weights before doing pip install.
Feel free to create an issue in our GitHub.
ERROR: RuntimeError: unexpected EOF, expected 39359 more bytes. The file might be corrupted.
Aborting processing! This was most likely an error regarding the data input or missing weights before doing pip install.
Feel free to create an issue in our GitHub.
Closing worker thread...
Done.
Closing worker thread...
I downloaded the network weights again, but I still have this problem.
yes, all CTs can open ITK-Snap or 3D Slicer without errors
PS D:\medpseg> medpseg
Could not find platform dependent libraries
Thanks for the outputs, It looks like you are not using a separate environment for medpseg, I recommend you create a new environment and install the requirements listed in requirements.txt. If the model weights are not corrupted in download, I suspect the model weights are not loading correctly due to library versions.
What version is your PyTorch and PyTorch Lightning?
Could you install miniconda and create an specific environment as detailed on the repository readme, installing torch and subsequently installing the requirements with pip install -r requirements.txt?
I have provided an alternative link to download the weights, in case they are being corrupted when downloaded to your specific location. I have tested these today and they should work!
https://drive.google.com/file/d/1biSkeLhDNpxUA6xqOVEOhpaElJ1Y8mWt/view?usp=sharing
torch 2.4.0 torchinfo 1.8.0 torchmetrics 1.4.0.post0 torchvision 0.19.0
My python version is 3.11
pytools 2024.1.11 pytorch-lightning 2.3.3
SimpleITK==2.2.1
@puallee Hello! were you able to solve the problem using the alternative link to the weights I provided?
sorry,the same error, I think the weight maybe not the reason
@puallee were you able to solve this? I suspect your EfficientNet weights might be corrupted given your previous error message. Have you tried what I mentioned before: "Could you install miniconda and create an specific environment as detailed on the repository readme, installing torch and subsequently installing the requirements with pip install -r requirements.txt?"?
@puallee were you able to solve this issue? I suspect the EfficientNet weights being corrupt in your torch cache, maybe try what I mentioned in the last comment.
there was a problem when I tried to start processing of the Nii image or dicom image
Runlist: ['C:/Users/V/Desktop/imagesTr/004_0000.nii.gz']. 1 volumes detected.
Will save outputs in C:/Users/V/Desktop/pred.
Click start processing to start.
ERROR: RuntimeError: unexpected EOF, expected 39359 more bytes. The file might be corrupted.
Aborting processing! This was most likely an error regarding the data input or missing weights before doing pip install.
Feel free to create an issue in our GitHub.
Closing worker thread...
Done.
Runlist: ['C:/Users/V/Desktop/imagesTr/059_0000.nii.gz']. 1 volumes detected.
Will save outputs in C:/Users/V/Desktop/pred.
Click start processing to start.
ERROR: RuntimeError: unexpected EOF, expected 39359 more bytes. The file might be corrupted.
Aborting processing! This was most likely an error regarding the data input or missing weights before doing pip install.
Feel free to create an issue in our GitHub.
Closing worker thread...
Done.
Please load a folder or image before starting processing.
Please load a folder or image before starting processing.
Please load a folder or image before starting processing.
Runlist: ['G:/DICOM/dicom/dicom/1.2.276.0.7230010.3.1.4.3507096321.30414.1535700143.988584.dcm']. 1 volumes detected.
Will save outputs in C:/Users/V/Desktop/pred.
Click start processing to start.
ERROR: RuntimeError: unexpected EOF, expected 39359 more bytes. The file might be corrupted.
Aborting processing! This was most likely an error regarding the data input or missing weights before doing pip install.
Feel free to create an issue in our GitHub.
Closing worker thread...
Done.