Use train.sh to train your generative priors. Before execution, please prepare a list of files like below for your dataset. This dataset contains the complex images that are obtained after phase augmentation.
../abide_2/train/abide_1000000.hdr
../abide_2/train/abide_1000001.hdr
../abide_2/train/abide_1000002.hdr
../abide_2/train/abide_1000003.hdr
The command find could help you to create such a list of files.
folder=/path/to/folder/that/contains/complex/images
pattern="abide_*.hdr"
find $path -name $pattern | sort > /path/to/filelist
Then go to the config file and check following things.
- specify where to save the trained models with
log_folder
- if the variables
train_list
andtest_list
are modified intrain.sh
, please change it in the config file as well - specify the number of GPU available with
nr_gpu
andgpu_id
- please go to spreco for the information on the other configurations