MASILab / Synb0-DISCO

Distortion correction of diffusion weighted MRI without reverse phase-encoding scans or field-maps
https://my.vanderbilt.edu/masi
57 stars 28 forks source link

Missing dual_channel_unet ? #28

Open abesik opened 2 years ago

abesik commented 2 years ago

Hi there! We've been having issues getting synb0 to work using docker / podman (we're using CentOS 7 on IT managed computers with our users existing on a server we have no permission to access so running rootless is.. painful to say the least). So for the meantime I've been trying to go through the pipeline.sh script to configure this to work without using a container.

I'm basically trying to replicate the paths in a working directory set up the same way it is expected to be in the container, on my local computer - but I came across /extra/dual_channel_unet on line 40 of pipeline.sh and can't seem to locate this in any of the folders cloned from git.

Is this something I should have in my manually created /extra directory, or is this something python/pytorch creates automatically?

I appreciate your time and help!

psimonjones commented 2 years ago

Thanks for SynBo-DISCO. I have a similar question.

I have obtained some nice-looking results using Synb0_DSICO.

However, the file pipeline.sh has the parameter /extra/dual_channel_unet/numfold"$i"_totalfolds"$NUM_FOLDS"_seed_1_num_epochs_100_lr_0.0001betas(0.9\,\ 0.999)_weight_decay_1e-05_numepoch*.pth The src directory released contains 'train_lin' but not 'dual_channel_unet'. I renamed 'train_lin' 'dual_channel_unet' so that the script would run without error. Is that OK or are the files inside 'train_lin' wrong?

Thanks for your help

psimonjones commented 2 years ago

I had a look at the files inside the Singularity container synb0_latest.sif and there is a directory called /extra/dual_channel_unet with pth files inside it that are identical to the pth files in /src/train_lin so I guess renaming it dual_channel_unet won't be worse than using the Singularity container.