nnUNet_calvingfront_detection / scripts_new /run_glacier_mtl_boundary_4.sh
ho11laqe's picture
init
ecf08bc
raw
history blame
1.25 kB
#!/bin/bash -l
#SBATCH --nodes=1 --gres=gpu:1 --time=24:00:00
#SBATCH --job-name=Task505_glacier_mtl_boundary_4
export data_raw="/home/woody/iwi5/iwi5039h/data_raw"
export nnUNet_raw_data_base="/home/woody/iwi5/iwi5039h/nnUNet_data/nnUNet_raw_data_base/"
export nnUNet_preprocessed="/home/woody/iwi5/iwi5039h/nnUNet_data/nnUNet_preprocessed/"
export RESULTS_FOLDER="/home/woody/iwi5/iwi5039h/nnUNet_data/RESULTS_FOLDER"
cd nnunet_glacer
pwd
conda activate nnunet
python3 nnunet/run/run_training.py 2d nnUNetTrainerMTLlate_boundary 505 4 -p nnUNetPlans_mtl --disable_postprocessing_on_folds
python3 nnunet/inference/predict_simple.py -i $nnUNet_raw_data_base/nnUNet_raw_data/Task505_Glacier_mtl_boundary/imagesTs -o $RESULTS_FOLDER/test_predictions/Task505_Glacier_mtllate_boundary/fold_4 -t 505 -m 2d -f 4 -p nnUNetPlans_mtl -tr nnUNetTrainerMTLlate_boundary
python3 nnunet/dataset_conversion/Task505_Glacier_mtl_boundary_reverse.py -i $RESULTS_FOLDER/test_predictions/Task505_Glacier_mtllate_boundary/fold_4
python3 ./evaluate_nnUNet.py --predictions $RESULTS_FOLDER/test_predictions/Task505_Glacier_mtllate_boundary/fold_4/pngs --labels_fronts $data_raw/fronts/test --labels_zones $data_raw/zones/test --sar_images $data_raw/sar_images/test