External Email - Use Caution The current nightly build dated April 12th available from under,https://secure-web.cisco.com/1eprQplECVjQEgFy-DNvfPnzwSjew2U260XYR6pjQfShhM9gtsn58XZ4YRUlHYleeawzdPreispMAkZ2MQM7djCWtpvLAsdUowgmUhDSJuQv8O_5fefPPEs1LslaJbLvtLiYSihrPpDMqQl8XI-wfA6fvBLvdZGEorSSHkE8HZc964yhAJAU0LYSYOy9cD9hlCMe5NUexf5FlsSHnL5tt8VUWpdEbJ4kGOxPh5yeIs8vl4_Cv8UwrnmG7lIrS6lOu9oUQLQnNBK5VKpADCMYEek0svgu1wUv1NH8cYOpg4jfy9cfhhXCpznkSR99lHGKlu4Wnj2ZdK-iefKmAPd91yQ/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Fpub%2Fdist%2Ffreesurfer%2Fdev%2F- should have all the modules as well. - R.
On Apr 11, 2024, at 10:03, Iglesias Gonzalez, Juan E. <jiglesiasgonza...@mgh.harvard.edu> wrote:The idea would be to source 7.4.1 and then run:fspython [location_of_FS_dev]/python/packages/WMHSynthSeg/inference.py [arguments]Cheers,/Eugenio --Juan Eugenio Iglesiashttp://http://secure-web.cisco.com/1Bz_4nONhypuVg0at2yxM7j3iTzJ-6aeFlVMFOtu6kJDKPxwTMe7ZJnmmIkRXMNWFEGYYGq8NlCAbNhKFyGulewwR4fTOUBHQBiQDI0dEdGr0ZJP2jrcZbc10tC1447QVz6_ZVvrhVUx5n-lgiJJVXzeCOZ-6vl-bx6VFTc10EYES77izWOBFVPPlHLBqzSdlysIuI93NkD8E_G4I-HwZg0EpyNtwvLbO4TvKg0137MivLsXAZkuJTY-am7YdxPIonKE3oUFJDeblwytpcKdrOrio7MJX3S3xjSQOA-7Oo4DIYbpVrrldmcLJNWe8x_Syu0HnwnbLJlaS_76DMzUyCQ/http%3A%2F%2Fwww.jeiglesias.com%C2%A0From%3A%C2%A0freesurfer-bounces%40nmr.mgh.harvard.edu <freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of Corinne Alison Donnay <corinne.don...@linacre.ox.ac.uk>Date: Wednesday, April 10, 2024 at 8:39 AMTo: Freesurfer support list <freesurfer@nmr.mgh.harvard.edu>Subject: Re: [Freesurfer] WMH-SynthSeg - Torch module not found External Email - Use Caution Hi Eugenio, Thanks for getting back to me – I had the newest version installed and still get the same error (pasted below). mri_WMHsynthseg --i flair_ax.nii.gz --o flair_ax_WML.nii.gz --threads -1 Arguments seem correct; loading Python packages...Traceback (most recent call last): File "/usr/local/apps/freesurfer/dev-2024-04-19/python/packages/WMHSynthSeg/inference.py", line 284, in <module> main() File "/usr/local/apps/freesurfer/dev-2024-04-19/python/packages/WMHSynthSeg/inference.py", line 76, in main import torchModuleNotFoundError: No module named 'torch' I also installed FreeSurfer 7.4.1. Would you be able to expand on what you mean by “a way around this is installing FreeSurfer 7.4.1, and using its fspython to run the WMh-SynthSeg code”? I loaded FreeSurfer 7.4.1, and then changed the location of the model in inference.py and tried using FreeSurfer 7.4.1 fspython but now its missing the 'unet3d' module: [donnayca@cn4270 anat]$ module load freesurfer[-] Unloading freesurfer 7.4.1 on cn4270 [+] Loading freesurfer 7.4.1 on cn4270 [donnayca@cn4270 anat]$ fspython ../inference_cd.py --i flair_ax.nii.gz --o flair_ax_WML.nii.gzArguments seem correct; loading Python packages...Traceback (most recent call last): File "../inference_cd.py", line 285, in <module> main() File "../inference_cd.py", line 79, in main from unet3d.model import UNet3DModuleNotFoundError: No module named 'unet3d'[donnayca@cn4270 anat]$ fspythonPython 3.8.13 (default, Apr 21 2022, 14:55:37) [GCC 8.3.1 20190311 (Red Hat 8.3.1-3)] on linuxType "help", "copyright", "credits" or "license" for more information.>>> exit() Thank you!CorinneFrom: <freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of "Iglesias Gonzalez, Juan E." <jiglesiasgonza...@mgh.harvard.edu>Reply-To: Freesurfer support list <freesurfer@nmr.mgh.harvard.edu>Date: Saturday, April 6, 2024 at 1:04 PMTo: Freesurfer support list <freesurfer@nmr.mgh.harvard.edu>Subject: Re: [Freesurfer] WMH-SynthSeg - Torch module not found Wrong answer: apparently this has been fixed in the latest dev; maybe try that?Cheers,/Eugenio --Juan Eugenio Iglesiashttp://http://secure-web.cisco.com/1Bz_4nONhypuVg0at2yxM7j3iTzJ-6aeFlVMFOtu6kJDKPxwTMe7ZJnmmIkRXMNWFEGYYGq8NlCAbNhKFyGulewwR4fTOUBHQBiQDI0dEdGr0ZJP2jrcZbc10tC1447QVz6_ZVvrhVUx5n-lgiJJVXzeCOZ-6vl-bx6VFTc10EYES77izWOBFVPPlHLBqzSdlysIuI93NkD8E_G4I-HwZg0EpyNtwvLbO4TvKg0137MivLsXAZkuJTY-am7YdxPIonKE3oUFJDeblwytpcKdrOrio7MJX3S3xjSQOA-7Oo4DIYbpVrrldmcLJNWe8x_Syu0HnwnbLJlaS_76DMzUyCQ/http%3A%2F%2Fwww.jeiglesias.com%C2%A0From%3A%C2%A0freesurfer-bounces%40nmr.mgh.harvard.edu <freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of Iglesias Gonzalez, Juan E. <jiglesiasgonza...@mgh.harvard.edu>Date: Friday, April 5, 2024 at 3:58 PMTo: Freesurfer support list <freesurfer@nmr.mgh.harvard.edu>Subject: Re: [Freesurfer] WMH-SynthSeg - Torch module not foundDear Corinne,A bunch of libraries are currently broken in the development version; apologies for this. A way around this is installing FreeSurfer 7.4.1, and using its fspython to run the WMh-SynthSeg code. Apologies for the inconvenience!Cheers,/EPS: I just updated the wiki to include this information. --Juan Eugenio Iglesiashttp://http://secure-web.cisco.com/1Bz_4nONhypuVg0at2yxM7j3iTzJ-6aeFlVMFOtu6kJDKPxwTMe7ZJnmmIkRXMNWFEGYYGq8NlCAbNhKFyGulewwR4fTOUBHQBiQDI0dEdGr0ZJP2jrcZbc10tC1447QVz6_ZVvrhVUx5n-lgiJJVXzeCOZ-6vl-bx6VFTc10EYES77izWOBFVPPlHLBqzSdlysIuI93NkD8E_G4I-HwZg0EpyNtwvLbO4TvKg0137MivLsXAZkuJTY-am7YdxPIonKE3oUFJDeblwytpcKdrOrio7MJX3S3xjSQOA-7Oo4DIYbpVrrldmcLJNWe8x_Syu0HnwnbLJlaS_76DMzUyCQ/http%3A%2F%2Fwww.jeiglesias.com%C2%A0From%3A%C2%A0freesurfer-bounces%40nmr.mgh.harvard.edu <freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of Corinne Alison Donnay <corinne.don...@linacre.ox.ac.uk>Date: Friday, April 5, 2024 at 12:43 PMTo: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu>Subject: [Freesurfer] WMH-SynthSeg - Torch module not found External Email - Use Caution Good Afternoon! I was working with my IT department to install the development version of FreeSurfer on our server so that I could use WMH-SynthSeg. IT installed development version 2024-04-14. After loading the freesurfer development module, and running source $FREESURFER_HOME/SetUpFreeSurfer.sh, I still get the following error: <image001.png> Is there any way to fix this or figure out what is wrong? Thank you!Corinne_______________________________________________Freesurfer mailing listfreesur...@nmr.mgh.harvard.eduhttps://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> . Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.