Official code for MICCAI2021. 'Contrastive Learning of Relative Position Regression for One-Shot Object Localization in 3D Medical Images'
the data format should be like:
βββ train
βΒ Β βββ 001
βΒ Β βββ data.nii.gz
| βββ 002
βΒ Β βββ data.nii.gz
| .
| .
| .
βββ valid
| βββ 00N
| βββ data.nii.gz
| .
| .
| .
βββ test
| βββ 00X
| βββ data.nii.gz
| .
| .
| .
The name of data division folder should be train/valid/test while the folder name of each volume could be arbitrary.
The preprocess contains two stage:
- Resample: use
data_process/Resample_data.py
- Normalization: use
data_process/Normalize_data.py
Use train/train_position.py
.
The config file is in config
, containing 4 files for coarse/fine & pancreas/head and neck dataset.
You can choose anyone by changing the config_file
in line 173 of train.py
.