forked from microsoft/torchgeo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor datamodule/model testing (microsoft#329)
* Refactor RegressionTask testing * Programmatically determine max value * Refactor ClassificationTask testing * Silence warnings * Refactor SegmentationTask testing * Fix training mappings * Fix GeoDataset trainers * Fix ETCI trainer fake data * Update OSCD training data * Get LandCoverAI tests to pass * Fix OSCD checksum handling * Fix NAIP-Chesapeake tests * Fix OSCD tests * Keep BoundingBox icy * Fix other datamodules * Fix chesapeake testing * Refactor BYOLTask tests * Style fixes * Silence pytorch-lightning warnings * Get coverage for Chesapeake CVPR prior * Fix trainer tests
- Loading branch information
1 parent
37fde05
commit 5af5063
Showing
229 changed files
with
987 additions
and
954 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
experiment: | ||
task: "bigearthnet" | ||
module: | ||
loss: "bce" | ||
classification_model: "resnet18" | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
weights: "random" | ||
in_channels: 2 | ||
num_classes: 19 | ||
datamodule: | ||
root_dir: "tests/data/bigearthnet" | ||
bands: "s1" | ||
num_classes: ${experiment.module.num_classes} | ||
batch_size: 1 | ||
num_workers: 0 |
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,16 @@ | ||
experiment: | ||
task: "bigearthnet" | ||
module: | ||
loss: "bce" | ||
classification_model: "resnet18" | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
weights: "random" | ||
in_channels: 12 | ||
num_classes: 19 | ||
datamodule: | ||
root_dir: "tests/data/bigearthnet" | ||
bands: "s2" | ||
num_classes: ${experiment.module.num_classes} | ||
batch_size: 1 | ||
num_workers: 0 |
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 |
---|---|---|
|
@@ -16,5 +16,5 @@ experiment: | |
- "de-test" | ||
test_splits: | ||
- "de-test" | ||
batch_size: 64 | ||
batch_size: 1 | ||
num_workers: 0 |
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,29 @@ | ||
experiment: | ||
task: "chesapeake_cvpr" | ||
module: | ||
loss: "ce" | ||
segmentation_model: "unet" | ||
encoder_name: "resnet50" | ||
encoder_weights: null | ||
encoder_output_stride: 16 | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
in_channels: 4 | ||
num_classes: 5 | ||
num_filters: 1 | ||
ignore_zeros: False | ||
imagenet_pretraining: False | ||
datamodule: | ||
root_dir: "tests/data/chesapeake/cvpr" | ||
train_splits: | ||
- "de-test" | ||
val_splits: | ||
- "de-test" | ||
test_splits: | ||
- "de-test" | ||
patches_per_tile: 2 | ||
patch_size: 64 | ||
batch_size: 2 | ||
num_workers: 0 | ||
class_set: ${experiment.module.num_classes} | ||
use_prior_labels: False |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
experiment: | ||
task: "chesapeake_cvpr" | ||
module: | ||
loss: "ce" | ||
segmentation_model: "unet" | ||
encoder_name: "resnet50" | ||
encoder_weights: null | ||
encoder_output_stride: 16 | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
in_channels: 4 | ||
num_classes: 5 | ||
num_filters: 1 | ||
ignore_zeros: False | ||
imagenet_pretraining: False | ||
datamodule: | ||
root_dir: "tests/data/chesapeake/cvpr" | ||
train_splits: | ||
- "de-test" | ||
val_splits: | ||
- "de-test" | ||
test_splits: | ||
- "de-test" | ||
patches_per_tile: 2 | ||
patch_size: 64 | ||
batch_size: 2 | ||
num_workers: 0 | ||
class_set: ${experiment.module.num_classes} | ||
use_prior_labels: True |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
experiment: | ||
task: "oscd" | ||
module: | ||
loss: "jaccard" | ||
segmentation_model: "unet" | ||
encoder_name: "resnet18" | ||
encoder_weights: null | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
verbose: false | ||
in_channels: 6 | ||
num_classes: 2 | ||
num_filters: 1 | ||
ignore_zeros: True | ||
datamodule: | ||
root_dir: "tests/data/oscd" | ||
batch_size: 1 | ||
num_workers: 0 | ||
val_split_pct: 0.5 | ||
bands: "rgb" | ||
num_patches_per_tile: 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
experiment: | ||
task: "sen12ms" | ||
module: | ||
loss: "focal" | ||
segmentation_model: "fcn" | ||
num_filters: 1 | ||
encoder_name: "resnet18" | ||
encoder_weights: null | ||
encoder_output_stride: 16 | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 2 | ||
in_channels: 2 | ||
num_classes: 11 | ||
ignore_zeros: False | ||
datamodule: | ||
root_dir: "tests/data/sen12ms" | ||
band_set: "s1" | ||
batch_size: 1 | ||
num_workers: 0 | ||
seed: 0 |
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 @@ | ||
experiment: | ||
task: "sen12ms" | ||
module: | ||
loss: "ce" | ||
segmentation_model: "unet" | ||
encoder_name: "resnet18" | ||
encoder_weights: null | ||
encoder_output_stride: 16 | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 2 | ||
in_channels: 13 | ||
num_classes: 11 | ||
ignore_zeros: False | ||
datamodule: | ||
root_dir: "tests/data/sen12ms" | ||
band_set: "s2-all" | ||
batch_size: 1 | ||
num_workers: 0 | ||
seed: 0 |
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 @@ | ||
experiment: | ||
task: "sen12ms" | ||
module: | ||
loss: "ce" | ||
segmentation_model: "unet" | ||
encoder_name: "resnet18" | ||
encoder_weights: null | ||
encoder_output_stride: 16 | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 2 | ||
in_channels: 6 | ||
num_classes: 11 | ||
ignore_zeros: False | ||
datamodule: | ||
root_dir: "tests/data/sen12ms" | ||
band_set: "s2-reduced" | ||
batch_size: 1 | ||
num_workers: 0 | ||
seed: 0 |
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.