-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add pretrain.py tested with seco100k * refactor * add pretrain.py tested with seco100k * refactor * refactor to train.py and add simclr * revert simclr and pretrain.py changes * revert more simclr changesg * add refactor to configs and train.py * add hydra.utils.instantiate import * fix flake8 * update tests and add hydra-core to deps * fix byol tests * update exp name * format * remove evaluate.py * add hydra-core to min tests deps * update tests * add trainer to configs and use lightning.Trainer insteead of pl.Trainer * add eurosat100 test * update train.py * lightning.Trainer -> lightning.pytorch.Trainer * remove omegaconf * update hydra-core to 1.1.1 and fix mypy * add recursive hydra config test * update coment * update test config * fix tests * add omegaconf back in * remove hydra recursive test * update hydra-core to 2.3.0 for ci * Try older hydra * Older hydra requires old omegaconf * Try older hydra * Try newer hydra * Try older hydra * Try newer hydra * Finalize minimum dep versions --------- Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
- Loading branch information
1 parent
98d8666
commit d3c82a5
Showing
73 changed files
with
1,292 additions
and
1,643 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
module: | ||
_target_: torchgeo.trainers.MultiLabelClassificationTask | ||
loss: "bce" | ||
model: "resnet18" | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
weights: null | ||
in_channels: 14 | ||
num_classes: 19 | ||
|
||
datamodule: | ||
_target_: torchgeo.datamodules.BigEarthNetDataModule | ||
root: "data/bigearthnet" | ||
bands: "all" | ||
num_classes: ${module.num_classes} | ||
batch_size: 128 | ||
num_workers: 4 | ||
|
||
trainer: | ||
_target_: lightning.pytorch.Trainer | ||
accelerator: gpu | ||
devices: 1 | ||
min_epochs: 10 | ||
max_epochs: 40 | ||
benchmark: True | ||
experiment: | ||
task: "bigearthnet" | ||
module: | ||
loss: "bce" | ||
model: "resnet18" | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
weights: null | ||
in_channels: 14 | ||
num_classes: 19 | ||
datamodule: | ||
root: "data/bigearthnet" | ||
bands: "all" | ||
num_classes: ${experiment.module.num_classes} | ||
batch_size: 128 | ||
num_workers: 4 | ||
min_epochs: 15 | ||
max_epochs: 40 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,33 +1,34 @@ | ||
module: | ||
_target_: torchgeo.trainers.SemanticSegmentationTask | ||
loss: "ce" | ||
model: "unet" | ||
backbone: "resnet18" | ||
weights: null | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
in_channels: 4 | ||
num_classes: 7 | ||
num_filters: 256 | ||
ignore_index: null | ||
|
||
datamodule: | ||
_target_: torchgeo.datamodules.ChesapeakeCVPRDataModule | ||
root: "data/chesapeake/cvpr" | ||
train_splits: | ||
- "de-train" | ||
val_splits: | ||
- "de-val" | ||
test_splits: | ||
- "de-test" | ||
batch_size: 200 | ||
patch_size: 256 | ||
num_workers: 4 | ||
class_set: ${module.num_classes} | ||
use_prior_labels: False | ||
|
||
trainer: | ||
_target_: lightning.pytorch.Trainer | ||
accelerator: gpu | ||
devices: 1 | ||
min_epochs: 20 | ||
max_epochs: 100 | ||
benchmark: True | ||
experiment: | ||
task: "chesapeake_cvpr" | ||
name: "chesapeake_cvpr_example" | ||
module: | ||
loss: "ce" | ||
model: "unet" | ||
backbone: "resnet18" | ||
weights: null | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
in_channels: 4 | ||
num_classes: 7 | ||
num_filters: 256 | ||
ignore_index: null | ||
datamodule: | ||
root: "data/chesapeake/cvpr" | ||
train_splits: | ||
- "de-train" | ||
val_splits: | ||
- "de-val" | ||
test_splits: | ||
- "de-test" | ||
batch_size: 200 | ||
patch_size: 256 | ||
num_workers: 4 | ||
class_set: ${experiment.module.num_classes} | ||
use_prior_labels: False | ||
min_epochs: 15 | ||
max_epochs: 40 |
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 |
---|---|---|
@@ -1,18 +1,21 @@ | ||
module: | ||
_target_: torchgeo.trainers.RegressionTask | ||
model: resnet18 | ||
weights: null | ||
num_outputs: 1 | ||
in_channels: 3 | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 2 | ||
|
||
datamodule: | ||
_target_: torchgeo.datamodules.COWCCountingDataModule | ||
root: "data/cowc_counting" | ||
batch_size: 64 | ||
num_workers: 4 | ||
|
||
trainer: | ||
_target_: lightning.pytorch.Trainer | ||
accelerator: gpu | ||
devices: 1 | ||
min_epochs: 15 | ||
experiment: | ||
task: cowc_counting | ||
name: cowc_counting_test | ||
module: | ||
model: resnet18 | ||
weights: null | ||
num_outputs: 1 | ||
in_channels: 3 | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 2 | ||
datamodule: | ||
root: "data/cowc_counting" | ||
batch_size: 64 | ||
num_workers: 4 | ||
max_epochs: 40 |
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 |
---|---|---|
@@ -1,18 +1,21 @@ | ||
module: | ||
_target_: torchgeo.trainers.RegressionTask | ||
model: "resnet18" | ||
weights: null | ||
num_outputs: 1 | ||
in_channels: 3 | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 2 | ||
|
||
datamodule: | ||
_target_: torchgeo.datamodules.TropicalCycloneDataModule | ||
root: "data/cyclone" | ||
batch_size: 32 | ||
num_workers: 4 | ||
|
||
trainer: | ||
_target_: lightning.pytorch.Trainer | ||
accelerator: gpu | ||
devices: 1 | ||
min_epochs: 15 | ||
experiment: | ||
task: "cyclone" | ||
name: "cyclone_test" | ||
module: | ||
model: "resnet18" | ||
weights: null | ||
num_outputs: 1 | ||
in_channels: 3 | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 2 | ||
datamodule: | ||
root: "data/cyclone" | ||
batch_size: 32 | ||
num_workers: 4 | ||
max_epochs: 40 |
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 |
---|---|---|
@@ -1,20 +1,28 @@ | ||
experiment: | ||
task: "deepglobelandcover" | ||
module: | ||
loss: "ce" | ||
model: "unet" | ||
backbone: "resnet18" | ||
weights: null | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
verbose: false | ||
in_channels: 3 | ||
num_classes: 7 | ||
num_filters: 1 | ||
ignore_index: null | ||
datamodule: | ||
root: "data/deepglobelandcover" | ||
batch_size: 1 | ||
patch_size: 64 | ||
val_split_pct: 0.5 | ||
num_workers: 0 | ||
module: | ||
_target_: torchgeo.trainers.SemanticSegmentationTask | ||
loss: "ce" | ||
model: "unet" | ||
backbone: "resnet18" | ||
weights: null | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
verbose: false | ||
in_channels: 3 | ||
num_classes: 7 | ||
num_filters: 1 | ||
ignore_index: null | ||
|
||
datamodule: | ||
_target_: torchgeo.datamodules.DeepGlobeLandCoverDataModule | ||
root: "data/deepglobelandcover" | ||
batch_size: 1 | ||
patch_size: 64 | ||
val_split_pct: 0.5 | ||
num_workers: 0 | ||
|
||
trainer: | ||
_target_: lightning.pytorch.Trainer | ||
accelerator: gpu | ||
devices: 1 | ||
min_epochs: 15 | ||
max_epochs: 40 |
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 |
---|---|---|
@@ -1,16 +1,24 @@ | ||
experiment: | ||
task: "etci2021" | ||
module: | ||
loss: "ce" | ||
model: "unet" | ||
backbone: "resnet18" | ||
weights: "imagenet" | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
in_channels: 6 | ||
num_classes: 2 | ||
ignore_index: 0 | ||
datamodule: | ||
root: "data/etci2021" | ||
batch_size: 32 | ||
num_workers: 4 | ||
module: | ||
_target_: torchgeo.trainers.SemanticSegmentationTask | ||
loss: "ce" | ||
model: "unet" | ||
backbone: "resnet18" | ||
weights: "imagenet" | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
in_channels: 6 | ||
num_classes: 2 | ||
ignore_index: 0 | ||
|
||
datamodule: | ||
_target_: torchgeo.datamodules.ETCI2021DataModule | ||
root: "data/etci2021" | ||
batch_size: 32 | ||
num_workers: 4 | ||
|
||
trainer: | ||
_target_: lightning.pytorch.Trainer | ||
accelerator: gpu | ||
devices: 1 | ||
min_epochs: 15 | ||
max_epochs: 40 |
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 |
---|---|---|
@@ -1,14 +1,22 @@ | ||
experiment: | ||
task: "eurosat" | ||
module: | ||
loss: "ce" | ||
model: "resnet18" | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
weights: null | ||
in_channels: 13 | ||
num_classes: 10 | ||
datamodule: | ||
root: "data/eurosat" | ||
batch_size: 128 | ||
num_workers: 4 | ||
module: | ||
_target_: torchgeo.trainers.ClassificationTask | ||
loss: "ce" | ||
model: "resnet18" | ||
learning_rate: 1e-3 | ||
learning_rate_schedule_patience: 6 | ||
weights: null | ||
in_channels: 13 | ||
num_classes: 10 | ||
|
||
datamodule: | ||
_target_: torchgeo.datamodules.EuroSATDataModule | ||
root: "data/eurosat" | ||
batch_size: 128 | ||
num_workers: 4 | ||
|
||
trainer: | ||
_target_: lightning.pytorch.Trainer | ||
accelerator: gpu | ||
devices: 1 | ||
min_epochs: 15 | ||
max_epochs: 40 |
Oops, something went wrong.