Training, Inference and Evaluation
The directory launch contains template bash scripts for training, inference and evaluation.
Training. For each run, you need to specify names of two variables, for example
EXP=baselines
RUN_ID=v01
Running bash ./launch/run_voc_resnet38.sh will create a directory ./logs/pascal_voc/baselines/v01 with tensorboard events and will save snapshots into ./snapshots/pascal_voc/baselines/v01.
Inference. To generate final masks, please, use the script ./launch/infer_val.sh. You will need to specify:
EXP and RUN_ID you used for training;
OUTPUT_DIR the path where to save the masks;
FILELIST specifies the file to the data split;
SNAPSHOT specifies the model suffix in the format e000Xs0.000. For example, e020Xs0.928;
(optionally) EXTRA_ARGS specify additional arguments to the inference script.
Evaluation. To compute IoU of the masks, please, run ./launch/eval_seg.sh. You will need to specify SAVE_DIR that contains the masks and FILELIST specifying the split for evaluation.