Open wiildsoul opened 2 years ago
Hi, I just upload the conda environment to this repo. Basically, you can run the code by following steps:
git clone https://github.com/guopengf/FL-MRCM.git
cd FL-MRCM conda env create -f conda_environment.yml conda activate recon
Follow the instruction in README to download the preprocessed data via OneDrive or BaiduYun.
Correct the dataset path
In main_fl_mr.py Line 23-26, change the path to where you save the datasets. Since HPKS dataset currently is not released, you may remove 'H' dataset for now.
Run the code
python main_fl_mr.py --phase train --dataset mri --model unet --epochs 50 --challenge singlecoil --local_bs 16 --num_users 3 --local_ep 2 --train_dataset BFI --test_dataset B --sequence T1 --accelerations 4 --center-fractions 0.08 --val_sample_rate 1.0 --save_dir 'Dir path for saving checkpoints' --verbose
replace the 'Dir path for saving checkpoints' to your exp folder
tensorboard --logdir 'Dir path for saving checkpoints'
Hopefully, this can help you get started.
THANK YOU
AND WILL COMMENT HERE IF THERE ARE ANY ISSUES
Can you please let me know how to run it Properly . And configure the dataset properly. I am new to this field ... HELP WILL BE APPRECIATED
Thank You Very Much