-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from nasa-nccs-hpda/develop
Develop
- Loading branch information
Showing
10 changed files
with
589 additions
and
51 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...es/satvision-toa-finetune/finetune_satvision_base_landcover5class_192_window12_100ep.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
MODEL: | ||
TYPE: swinv2 | ||
DECODER: unet | ||
NAME: satvision_finetune_lc5class | ||
DROP_PATH_RATE: 0.1 | ||
NUM_CLASSES: 5 | ||
SWINV2: | ||
IN_CHANS: 7 | ||
EMBED_DIM: 128 | ||
DEPTHS: [ 2, 2, 18, 2 ] | ||
NUM_HEADS: [ 4, 8, 16, 32 ] | ||
WINDOW_SIZE: 14 | ||
PRETRAINED_WINDOW_SIZES: [ 12, 12, 12, 6 ] | ||
DATA: | ||
IMG_SIZE: 224 | ||
DATASET: MODISLC5 | ||
MASK_PATCH_SIZE: 32 | ||
MASK_RATIO: 0.6 | ||
LOSS: | ||
NAME: 'tversky' | ||
MODE: 'multiclass' | ||
ALPHA: 0.4 | ||
BETA: 0.6 | ||
TRAIN: | ||
EPOCHS: 100 | ||
WARMUP_EPOCHS: 10 | ||
BASE_LR: 1e-4 | ||
WARMUP_LR: 5e-7 | ||
WEIGHT_DECAY: 0.01 | ||
LAYER_DECAY: 0.8 | ||
PRINT_FREQ: 100 | ||
SAVE_FREQ: 5 | ||
TAG: satvision_finetune_land_cover_5class_swinv2_satvision_192_window12__800ep |
33 changes: 33 additions & 0 deletions
33
...es/satvision-toa-finetune/finetune_satvision_base_landcover9class_192_window12_100ep.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
MODEL: | ||
TYPE: swinv2 | ||
DECODER: unet | ||
NAME: satvision_toa_finetune_lc9class | ||
DROP_PATH_RATE: 0.1 | ||
NUM_CLASSES: 9 | ||
SWINV2: | ||
IN_CHANS: 14 | ||
EMBED_DIM: 352 | ||
DEPTHS: [ 2, 2, 18, 2 ] | ||
NUM_HEADS: [ 4, 8, 16, 32 ] | ||
WINDOW_SIZE: 14 | ||
NORM_PERIOD: 6 | ||
DATA: | ||
IMG_SIZE: 224 | ||
DATASET: MODISLC9 | ||
MASK_PATCH_SIZE: 8 | ||
MASK_RATIO: 0.6 | ||
LOSS: | ||
NAME: 'tversky' | ||
MODE: 'multiclass' | ||
ALPHA: 0.4 | ||
BETA: 0.6 | ||
TRAIN: | ||
EPOCHS: 100 | ||
WARMUP_EPOCHS: 10 | ||
BASE_LR: 1e-4 | ||
WARMUP_LR: 5e-7 | ||
WEIGHT_DECAY: 0.01 | ||
LAYER_DECAY: 0.8 | ||
PRINT_FREQ: 100 | ||
SAVE_FREQ: 5 | ||
TAG: satvision_toa_finetune_land_cover_9class_swinv2_satvision_224_window12__100ep |
20 changes: 20 additions & 0 deletions
20
examples/satvision-toa-finetune/run_satvision_finetune_lc_fiveclass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH -J finetune_satvision_lc5 | ||
#SBATCH -t 3-00:00:00 | ||
#SBATCH -G 4 | ||
#SBATCH -N 1 | ||
|
||
|
||
export PYTHONPATH=$PWD:../../../:../../../pytorch-caney | ||
export NGPUS=8 | ||
|
||
torchrun --nproc_per_node $NGPUS \ | ||
../../../pytorch-caney/pytorch_caney/pipelines/finetuning/finetune.py \ | ||
--cfg finetune_satvision_base_landcover5class_192_window12_100ep.yaml \ | ||
--pretrained /explore/nobackup/people/cssprad1/projects/satnet/code/development/masked_image_modeling/development/models/simmim_satnet_pretrain_pretrain/simmim_pretrain__satnet_swinv2_base__img192_window12__800ep_v3_no_norm/ckpt_epoch_800.pth \ | ||
--dataset MODISLC9 \ | ||
--data-paths /explore/nobackup/projects/ilab/data/satvision/finetuning/h18v04/labels_9classes_224 \ | ||
--batch-size 4 \ | ||
--output /explore/nobackup/people/cssprad1/projects/satnet/code/development/cleanup/finetune/models \ | ||
--enable-amp |
19 changes: 19 additions & 0 deletions
19
examples/satvision-toa-finetune/run_satvision_finetune_lc_nineclass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH -J finetune_satvision_lc9 | ||
#SBATCH -t 3-00:00:00 | ||
#SBATCH -G 4 | ||
#SBATCH -N 1 | ||
|
||
export PYTHONPATH=$PWD:$PWD/pytorch-caney | ||
export NGPUS=4 | ||
|
||
torchrun --nproc_per_node $NGPUS \ | ||
pytorch-caney/pytorch_caney/pipelines/finetuning/finetune.py \ | ||
--cfg $1 \ | ||
--pretrained $2 \ | ||
--dataset MODISLC9 \ | ||
--data-paths /explore/nobackup/projects/ilab/data/satvision/finetuning/h18v04/labels_5classes_224 \ | ||
--batch-size 4 \ | ||
--output . \ | ||
--enable-amp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.