MICLab-Unicamp / medpseg

MEDPSeg: Official implementation of Modified EfficientDet for Pulmonary Polymorphic Segmentation
MIT License
11 stars 5 forks source link

Perhaps a .ckpt file is missing #1

Closed Cspicp closed 7 months ago

Cspicp commented 7 months ago

Thank you very much for being able to open source the code!

I tried running the code, and n error occurred while generating segmentation results as shown in the image. ↓ Snipaste_2024-01-19_21-13-24

I reviewed the code again and found that perhaps a .ckpt file is missing: Snipaste_2024-01-19_21-15-08

dscarmo commented 7 months ago

Hello! This default string is just an internal reference, but the parameter "weight" is passed correctly by the code if you are running it following the readme.

How did you try using the code? Have you followed the readme? Did you download the release checkpoints and put in the folder before running pip install?

Cspicp commented 7 months ago

Hello! This default string is just an internal reference, but the parameter "weight" is passed correctly by the code if you are running it following the readme.

How did you try using the code? Have you followed the readme? Did you download the release checkpoints and put in the folder before running pip install?

Thank you very much for your prompt reply!

I'm not familiar with running code from the command line in Windows system, and when I first read the README.md I thought these commands were limited to Ubuntu system (strange idea :joy:) . So after I put the .ckpt document in the correct folder, I tried to run run.py directly in PyCharm, and then I encountered the above problem.

Now I have the code running successfully according to the README.md as shown in the following picture. 002

Thanks again for your reply!!

dscarmo commented 7 months ago

Glad you got it running!

One more thing I noticed, It appears the code is not using the GPU, make sure the environment you did pip install has GPU support in PyTorch configured correctly. It should complete a scan in around 2 minutes, if its taking longer than that your pytorch installation is not using your GPU.