| mamba activate diffmri |
| cd /home/cbtil3/hao/repo/Frequency-Diffusion |
| |
| |
| git pull |
|
|
| datapath=/home/hao/data/medical/Brain/ |
| |
|
|
| dataset=Brain |
| domain=BraTS-GLI-T1C |
| aux_modality=T1N |
| num_channels=1 |
|
|
|
|
| |
|
|
|
|
| diffusion_type=twobranch_kspace |
|
|
|
|
| time_step=30 |
| image_size=480 |
| sampling_routine=x0_step_down_fre |
| loss_type=l1 |
|
|
|
|
| tag=new_norm |
|
|
| deviceid=1 |
| |
| train_bs=2 |
|
|
|
|
| save_folder=./results/${diffusion_type}_${sampling_routine} |
|
|
|
|
| datapath=/home/hao/data/medical/Brain/ |
| datapath=/gamedrive/Datasets/medical/Brain/brats/Processed/ |
|
|
|
|
| mode=train |
|
|
| |
| python main.py --time_steps $time_step --train_steps 700000 \ |
| --save_folder $save_folder --tag $tag \ |
| --data_path $datapath --dataset $dataset \ |
| --domain $domain --aux_modality $aux_modality \ |
| --sampling_routine $sampling_routine \ |
| --remove_time_embed --residual --image_size $image_size \ |
| --diffusion_type $diffusion_type --train_bs $train_bs \ |
| --num_channels $num_channels --deviceid $deviceid \ |
| --kernel_std 0.15 --loss_type $loss_type --debug --mode $mode |
|
|
| |
| /gamedrive/Datasets/medical/FrequencyDiffusion/image_100patients_4X |
|
|
| BraTS20_Training_099_99_t1.png |
| BraTS20_Training_099_99_t2.png |
|
|
| mode=test |
| checkpoint=results/52_twobranch_kspace_x0_step_down_fre_new_norm/model.pt |
|
|
|
|
| deviceid=1 |
|
|
|
|
| |
| python main.py --time_steps $time_step --train_steps 700000 \ |
| --save_folder $save_folder --tag $tag \ |
| --data_path $datapath --dataset $dataset \ |
| --domain $domain --aux_modality $aux_modality \ |
| --sampling_routine $sampling_routine \ |
| --remove_time_embed --residual --image_size $image_size \ |
| --diffusion_type $diffusion_type --train_bs $train_bs \ |
| --num_channels $num_channels --deviceid $deviceid \ |
| --kernel_std 0.15 --load_path $checkpoint --debug --mode $mode |
|
|
|
|
|
|
| |
| /gamedrive/Datasets/medical/Knee/fastMRI/ |
|
|