diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9185fca22fb..947fd950632 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,36 +1,36 @@ # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file version: 2 updates: - - package-ecosystem: "devcontainers" - directory: "/.devcontainer" + - package-ecosystem: 'devcontainers' + directory: '/.devcontainer' schedule: - interval: "weekly" - - package-ecosystem: "github-actions" - directory: "/" + interval: 'weekly' + - package-ecosystem: 'github-actions' + directory: '/' schedule: - interval: "weekly" - - package-ecosystem: "pip" - directory: "/requirements" + interval: 'weekly' + - package-ecosystem: 'pip' + directory: '/requirements' schedule: - interval: "daily" + interval: 'daily' groups: # torchvision pins torch, must update in unison torch: patterns: - - "torch" - - "torchvision" + - 'torch' + - 'torchvision' ignore: # setuptools releases new versions almost daily - - dependency-name: "setuptools" - update-types: ["version-update:semver-patch"] + - dependency-name: 'setuptools' + update-types: ['version-update:semver-patch'] # sphinx 6 is incompatible with pytorch-sphinx-theme # https://github.com/pytorch/pytorch_sphinx_theme/issues/175 - - dependency-name: "sphinx" - versions: ">=6" + - dependency-name: 'sphinx' + versions: '>=6' # segmentation-models-pytorch pins timm, must update in unison - - dependency-name: "timm" - - package-ecosystem: "npm" - directory: "/requirements" + - dependency-name: 'timm' + - package-ecosystem: 'npm' + directory: '/' schedule: - interval: "weekly" - versioning-strategy: "lockfile-only" + interval: 'weekly' + versioning-strategy: 'lockfile-only' diff --git a/.github/labeler.yml b/.github/labeler.yml index 9e366aa7787..8b5b2212e85 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,48 +1,48 @@ # TorchGeo modules datamodules: - changed-files: - - any-glob-to-any-file: "torchgeo/datamodules/**" + - any-glob-to-any-file: 'torchgeo/datamodules/**' datasets: - changed-files: - - any-glob-to-any-file: "torchgeo/datasets/**" + - any-glob-to-any-file: 'torchgeo/datasets/**' losses: - changed-files: - - any-glob-to-any-file: "torchgeo/losses/**" + - any-glob-to-any-file: 'torchgeo/losses/**' models: - changed-files: - - any-glob-to-any-file: "torchgeo/models/**" + - any-glob-to-any-file: 'torchgeo/models/**' samplers: - changed-files: - - any-glob-to-any-file: "torchgeo/samplers/**" + - any-glob-to-any-file: 'torchgeo/samplers/**' trainers: - changed-files: - - any-glob-to-any-file: "torchgeo/trainers/**" + - any-glob-to-any-file: 'torchgeo/trainers/**' transforms: - changed-files: - - any-glob-to-any-file: "torchgeo/transforms/**" + - any-glob-to-any-file: 'torchgeo/transforms/**' # Other dependencies: - changed-files: - any-glob-to-any-file: - - "pyproject.toml" - - "requirements/**" - - ".github/dependabot.yml" + - 'pyproject.toml' + - 'requirements/**' + - '.github/dependabot.yml' documentation: - changed-files: - any-glob-to-any-file: - - "docs/**" - - "*.md" - - ".github/*.md" - - ".readthedocs.yaml" + - 'docs/**' + - '*.md' + - '.github/*.md' + - '.readthedocs.yaml' scripts: - changed-files: - any-glob-to-any-file: - - "torchgeo/__main__.py" - - "torchgeo/main.py" - - "experiments/**" + - 'torchgeo/__main__.py' + - 'torchgeo/main.py' + - 'experiments/**' testing: - changed-files: - any-glob-to-any-file: - - "tests/**" - - ".github/workflows/**" + - 'tests/**' + - '.github/workflows/**' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 0254d7c6edc..ab4427f24b7 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,4 +1,4 @@ -name: "labeler" +name: 'labeler' on: - pull_request_target jobs: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1484cb78c10..859c7b4a253 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,7 +19,7 @@ jobs: - name: Set up python uses: actions/setup-python@v5.2.0 with: - python-version: "3.12" + python-version: '3.12' - name: Cache dependencies uses: actions/cache@v4.0.2 id: cache @@ -47,7 +47,7 @@ jobs: - name: Set up python uses: actions/setup-python@v5.2.0 with: - python-version: "3.12" + python-version: '3.12' - name: Cache dependencies uses: actions/cache@v4.0.2 id: cache diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml index 4d5db703d0a..a7a683f5879 100644 --- a/.github/workflows/style.yaml +++ b/.github/workflows/style.yaml @@ -21,7 +21,7 @@ jobs: - name: Set up python uses: actions/setup-python@v5.2.0 with: - python-version: "3.12" + python-version: '3.12' - name: Cache dependencies uses: actions/cache@v4.0.2 id: cache @@ -46,7 +46,7 @@ jobs: - name: Set up python uses: actions/setup-python@v5.2.0 with: - python-version: "3.12" + python-version: '3.12' - name: Cache dependencies uses: actions/cache@v4.0.2 id: cache @@ -73,12 +73,12 @@ jobs: - name: Set up nodejs uses: actions/setup-node@v4.0.3 with: - node-version: "20" - cache: "npm" - cache-dependency-path: "requirements/package-lock.json" + node-version: '20' + cache: 'npm' + cache-dependency-path: 'package-lock.json' - name: Installing prettier run: | - npm install requirements/ + npm install npm cache clean --force - name: List npm dependencies run: npm ls --all diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 016cf60e12e..0ee2e3420fb 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -20,7 +20,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12"] + python-version: ['3.10', '3.11', '3.12'] steps: - name: Clone repo uses: actions/checkout@v4.1.7 @@ -63,7 +63,7 @@ jobs: - name: Set up python uses: actions/setup-python@v5.2.0 with: - python-version: "3.10" + python-version: '3.10' - name: Cache dependencies uses: actions/cache@v4.0.2 id: cache @@ -98,7 +98,7 @@ jobs: - name: Set up python uses: actions/setup-python@v5.2.0 with: - python-version: "3.12" + python-version: '3.12' - name: Cache dependencies uses: actions/cache@v4.0.2 id: cache diff --git a/.github/workflows/tutorials.yaml b/.github/workflows/tutorials.yaml index 5d4f02e896d..67accad5e2c 100644 --- a/.github/workflows/tutorials.yaml +++ b/.github/workflows/tutorials.yaml @@ -23,7 +23,7 @@ jobs: - name: Set up python uses: actions/setup-python@v5.2.0 with: - python-version: "3.12" + python-version: '3.12' - name: Cache dependencies uses: actions/cache@v4.0.2 id: cache diff --git a/.gitignore b/.gitignore index 3a017d0ee6e..180c27c47b2 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ # Node stuff: node_modules/ -/*.json # Spack .spack-env/ diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 2c11def62d9..36f098eaf89 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -8,7 +8,7 @@ version: 2 build: os: ubuntu-lts-latest tools: - python: "3.12" + python: '3.12' # Configuration of the Python environment to be used python: diff --git a/CITATION.cff b/CITATION.cff index 64524eaa24b..a8cc2bccab3 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -1,50 +1,50 @@ # https://github.com/citation-file-format/citation-file-format/blob/main/schema-guide.md # Can be validated using `cffconvert --validate` authors: - - family-names: "Stewart" - given-names: "Adam J." - - family-names: "Robinson" - given-names: "Caleb" - - family-names: "Corley" - given-names: "Isaac A." - - family-names: "Ortiz" - given-names: "Anthony" - - family-names: "Lavista Ferres" - given-names: "Juan M." - - family-names: "Banerjee" - given-names: "Arindam" -cff-version: "1.2.0" -message: "If you use this software, please cite it using the metadata from this file." + - family-names: 'Stewart' + given-names: 'Adam J.' + - family-names: 'Robinson' + given-names: 'Caleb' + - family-names: 'Corley' + given-names: 'Isaac A.' + - family-names: 'Ortiz' + given-names: 'Anthony' + - family-names: 'Lavista Ferres' + given-names: 'Juan M.' + - family-names: 'Banerjee' + given-names: 'Arindam' +cff-version: '1.2.0' +message: 'If you use this software, please cite it using the metadata from this file.' preferred-citation: authors: - - family-names: "Stewart" - given-names: "Adam J." - - family-names: "Robinson" - given-names: "Caleb" - - family-names: "Corley" - given-names: "Isaac A." - - family-names: "Ortiz" - given-names: "Anthony" - - family-names: "Lavista Ferres" - given-names: "Juan M." - - family-names: "Banerjee" - given-names: "Arindam" - collection-title: "Proceedings of the 30th International Conference on Advances in Geographic Information Systems" - collection-type: "proceedings" + - family-names: 'Stewart' + given-names: 'Adam J.' + - family-names: 'Robinson' + given-names: 'Caleb' + - family-names: 'Corley' + given-names: 'Isaac A.' + - family-names: 'Ortiz' + given-names: 'Anthony' + - family-names: 'Lavista Ferres' + given-names: 'Juan M.' + - family-names: 'Banerjee' + given-names: 'Arindam' + collection-title: 'Proceedings of the 30th International Conference on Advances in Geographic Information Systems' + collection-type: 'proceedings' conference: - city: "Seattle" + city: 'Seattle' name: "SIGSPATIAL '22" - region: "Washington" - doi: "10.1145/3557915.3560953" + region: 'Washington' + doi: '10.1145/3557915.3560953' end: 12 - isbn: "9781450395298" + isbn: '9781450395298' month: 11 number: 19 publisher: - name: "Association for Computing Machinery" + name: 'Association for Computing Machinery' start: 1 - title: "TorchGeo: Deep Learning With Geospatial Data" - type: "conference-paper" - url: "https://dl.acm.org/doi/10.1145/3557915.3560953" + title: 'TorchGeo: Deep Learning With Geospatial Data' + type: 'conference-paper' + url: 'https://dl.acm.org/doi/10.1145/3557915.3560953' year: 2022 -title: "TorchGeo: Deep Learning With Geospatial Data" +title: 'TorchGeo: Deep Learning With Geospatial Data' diff --git a/README.md b/README.md index 1d8565e57a8..6171e027640 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ trainer: model: class_path: ClassificationTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 13 num_classes: 10 data: diff --git a/experiments/ssl4eo/landsat/conf/l7irish.yaml b/experiments/ssl4eo/landsat/conf/l7irish.yaml index 91b1cbea15d..84c282fb951 100644 --- a/experiments/ssl4eo/landsat/conf/l7irish.yaml +++ b/experiments/ssl4eo/landsat/conf/l7irish.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 9 num_classes: 5 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -20,4 +20,4 @@ data: patch_size: 224 num_workers: 16 dict_kwargs: - paths: "data/l7irish" + paths: 'data/l7irish' diff --git a/experiments/ssl4eo/landsat/conf/l8biome.yaml b/experiments/ssl4eo/landsat/conf/l8biome.yaml index 728073a56fa..41de287cf54 100644 --- a/experiments/ssl4eo/landsat/conf/l8biome.yaml +++ b/experiments/ssl4eo/landsat/conf/l8biome.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 11 num_classes: 5 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -20,4 +20,4 @@ data: patch_size: 224 num_workers: 16 dict_kwargs: - paths: "data/l8biome" + paths: 'data/l8biome' diff --git a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_sr_cdl.yaml b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_sr_cdl.yaml index 93062f9942f..efcf09b01c2 100644 --- a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_sr_cdl.yaml +++ b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_sr_cdl.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 6 num_classes: 18 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -19,9 +19,9 @@ data: batch_size: 64 num_workers: 16 dict_kwargs: - root: "data/ssl4eo_benchmark" - sensor: "etm_sr" - product: "cdl" + root: 'data/ssl4eo_benchmark' + sensor: 'etm_sr' + product: 'cdl' classes: - 0 - 1 diff --git a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_sr_nlcd.yaml b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_sr_nlcd.yaml index 718b3281ed0..bff225c5ba0 100644 --- a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_sr_nlcd.yaml +++ b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_sr_nlcd.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 6 num_classes: 14 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -19,9 +19,9 @@ data: batch_size: 64 num_workers: 16 dict_kwargs: - root: "data/ssl4eo_benchmark" - sensor: "etm_sr" - product: "nlcd" + root: 'data/ssl4eo_benchmark' + sensor: 'etm_sr' + product: 'nlcd' classes: - 0 - 11 diff --git a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_toa_cdl.yaml b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_toa_cdl.yaml index f10a0508ffe..15e1412d8b7 100644 --- a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_toa_cdl.yaml +++ b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_toa_cdl.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 9 num_classes: 18 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -19,9 +19,9 @@ data: batch_size: 64 num_workers: 16 dict_kwargs: - root: "data/ssl4eo_benchmark" - sensor: "etm_toa" - product: "cdl" + root: 'data/ssl4eo_benchmark' + sensor: 'etm_toa' + product: 'cdl' classes: - 0 - 1 diff --git a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_toa_nlcd.yaml b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_toa_nlcd.yaml index 52a6107c096..29ecf722209 100644 --- a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_toa_nlcd.yaml +++ b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_etm_toa_nlcd.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 9 num_classes: 14 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -19,9 +19,9 @@ data: batch_size: 64 num_workers: 16 dict_kwargs: - root: "data/ssl4eo_benchmark" - sensor: "etm_toa" - product: "nlcd" + root: 'data/ssl4eo_benchmark' + sensor: 'etm_toa' + product: 'nlcd' classes: - 0 - 11 diff --git a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_sr_cdl.yaml b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_sr_cdl.yaml index 669e1221944..e289a69c46a 100644 --- a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_sr_cdl.yaml +++ b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_sr_cdl.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 7 num_classes: 18 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -19,9 +19,9 @@ data: batch_size: 64 num_workers: 16 dict_kwargs: - root: "data/ssl4eo_benchmark" - sensor: "oli_sr" - product: "cdl" + root: 'data/ssl4eo_benchmark' + sensor: 'oli_sr' + product: 'cdl' classes: - 0 - 1 diff --git a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_sr_nlcd.yaml b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_sr_nlcd.yaml index 81f3283f5b9..ab1ed68dc52 100644 --- a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_sr_nlcd.yaml +++ b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_sr_nlcd.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 7 num_classes: 14 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -19,9 +19,9 @@ data: batch_size: 64 num_workers: 16 dict_kwargs: - root: "data/ssl4eo_benchmark" - sensor: "oli_sr" - product: "nlcd" + root: 'data/ssl4eo_benchmark' + sensor: 'oli_sr' + product: 'nlcd' classes: - 0 - 11 diff --git a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_tirs_toa_cdl.yaml b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_tirs_toa_cdl.yaml index 876e25184c7..7066db83df8 100644 --- a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_tirs_toa_cdl.yaml +++ b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_tirs_toa_cdl.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 11 num_classes: 18 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -19,9 +19,9 @@ data: batch_size: 64 num_workers: 16 dict_kwargs: - root: "data/ssl4eo_benchmark" - sensor: "oli_tirs_toa" - product: "cdl" + root: 'data/ssl4eo_benchmark' + sensor: 'oli_tirs_toa' + product: 'cdl' classes: - 0 - 1 diff --git a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_tirs_toa_nlcd.yaml b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_tirs_toa_nlcd.yaml index 77f3f6eae45..b403e63c434 100644 --- a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_tirs_toa_nlcd.yaml +++ b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_oli_tirs_toa_nlcd.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 11 num_classes: 14 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -19,9 +19,9 @@ data: batch_size: 64 num_workers: 16 dict_kwargs: - root: "data/ssl4eo_benchmark" - sensor: "oli_tirs_toa" - product: "nlcd" + root: 'data/ssl4eo_benchmark' + sensor: 'oli_tirs_toa' + product: 'nlcd' classes: - 0 - 11 diff --git a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_tm_toa_cdl.yaml b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_tm_toa_cdl.yaml index 7adf1e46f97..b359d5e390b 100644 --- a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_tm_toa_cdl.yaml +++ b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_tm_toa_cdl.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 7 num_classes: 18 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -19,9 +19,9 @@ data: batch_size: 64 num_workers: 16 dict_kwargs: - root: "data/ssl4eo_benchmark" - sensor: "tm_toa" - product: "cdl" + root: 'data/ssl4eo_benchmark' + sensor: 'tm_toa' + product: 'cdl' classes: - 0 - 1 diff --git a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_tm_toa_nlcd.yaml b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_tm_toa_nlcd.yaml index b52fee6c6ca..41a908de96d 100644 --- a/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_tm_toa_nlcd.yaml +++ b/experiments/ssl4eo/landsat/conf/ssl4eo_benchmark_tm_toa_nlcd.yaml @@ -4,12 +4,12 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' weights: null in_channels: 7 num_classes: 14 - loss: "ce" + loss: 'ce' ignore_index: 0 lr: 1e-3 patience: 6 @@ -19,9 +19,9 @@ data: batch_size: 64 num_workers: 16 dict_kwargs: - root: "data/ssl4eo_benchmark" - sensor: "tm_toa" - product: "nlcd" + root: 'data/ssl4eo_benchmark' + sensor: 'tm_toa' + product: 'nlcd' classes: - 0 - 11 diff --git a/experiments/torchgeo/conf/chesapeake_cvpr.yaml b/experiments/torchgeo/conf/chesapeake_cvpr.yaml index da2e012ed05..43c07480293 100644 --- a/experiments/torchgeo/conf/chesapeake_cvpr.yaml +++ b/experiments/torchgeo/conf/chesapeake_cvpr.yaml @@ -4,9 +4,9 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' weights: null lr: 1e-3 patience: 6 @@ -18,15 +18,15 @@ data: class_path: ChesapeakeCVPRDataModule init_args: train_splits: - - "de-train" + - 'de-train' val_splits: - - "de-val" + - 'de-val' test_splits: - - "de-test" + - 'de-test' batch_size: 200 patch_size: 256 num_workers: 4 class_set: ${model.init_args.num_classes} use_prior_labels: False dict_kwargs: - root: "data/chesapeake/cvpr" + root: 'data/chesapeake/cvpr' diff --git a/experiments/torchgeo/conf/cowc_counting.yaml b/experiments/torchgeo/conf/cowc_counting.yaml index 481ba40cd97..eaf328062be 100644 --- a/experiments/torchgeo/conf/cowc_counting.yaml +++ b/experiments/torchgeo/conf/cowc_counting.yaml @@ -16,4 +16,4 @@ data: batch_size: 64 num_workers: 4 dict_kwargs: - root: "data/cowc_counting" + root: 'data/cowc_counting' diff --git a/experiments/torchgeo/conf/etci2021.yaml b/experiments/torchgeo/conf/etci2021.yaml index c3f0ae487ca..8d42dc1e633 100644 --- a/experiments/torchgeo/conf/etci2021.yaml +++ b/experiments/torchgeo/conf/etci2021.yaml @@ -4,9 +4,9 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' weights: true lr: 1e-3 patience: 6 @@ -19,4 +19,4 @@ data: batch_size: 32 num_workers: 4 dict_kwargs: - root: "data/etci2021" + root: 'data/etci2021' diff --git a/experiments/torchgeo/conf/eurosat.yaml b/experiments/torchgeo/conf/eurosat.yaml index 6e788273aa6..f9c10e2ff70 100644 --- a/experiments/torchgeo/conf/eurosat.yaml +++ b/experiments/torchgeo/conf/eurosat.yaml @@ -4,8 +4,8 @@ trainer: model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' lr: 1e-3 patience: 6 weights: null @@ -17,4 +17,4 @@ data: batch_size: 128 num_workers: 4 dict_kwargs: - root: "data/eurosat" + root: 'data/eurosat' diff --git a/experiments/torchgeo/conf/landcoverai.yaml b/experiments/torchgeo/conf/landcoverai.yaml index e9ef4df66cf..d026f92c66f 100644 --- a/experiments/torchgeo/conf/landcoverai.yaml +++ b/experiments/torchgeo/conf/landcoverai.yaml @@ -4,9 +4,9 @@ trainer: model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' weights: true lr: 1e-3 patience: 6 @@ -20,4 +20,4 @@ data: batch_size: 32 num_workers: 4 dict_kwargs: - root: "data/landcoverai" + root: 'data/landcoverai' diff --git a/experiments/torchgeo/conf/resisc45.yaml b/experiments/torchgeo/conf/resisc45.yaml index 8a9d34c4ede..fde75ff8844 100644 --- a/experiments/torchgeo/conf/resisc45.yaml +++ b/experiments/torchgeo/conf/resisc45.yaml @@ -4,8 +4,8 @@ trainer: model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' lr: 1e-3 patience: 6 weights: null @@ -17,4 +17,4 @@ data: batch_size: 128 num_workers: 4 dict_kwargs: - root: "data/resisc45" + root: 'data/resisc45' diff --git a/experiments/torchgeo/conf/so2sat.yaml b/experiments/torchgeo/conf/so2sat.yaml index 1b9e7144263..ad2da906431 100644 --- a/experiments/torchgeo/conf/so2sat.yaml +++ b/experiments/torchgeo/conf/so2sat.yaml @@ -4,8 +4,8 @@ trainer: model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' lr: 1e-3 patience: 6 weights: null @@ -16,6 +16,6 @@ data: init_args: batch_size: 128 num_workers: 4 - band_set: "all" + band_set: 'all' dict_kwargs: - root: "data/so2sat" + root: 'data/so2sat' diff --git a/experiments/torchgeo/conf/ucmerced.yaml b/experiments/torchgeo/conf/ucmerced.yaml index 2a4d8786422..abafd7eaff7 100644 --- a/experiments/torchgeo/conf/ucmerced.yaml +++ b/experiments/torchgeo/conf/ucmerced.yaml @@ -4,8 +4,8 @@ trainer: model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' weights: null lr: 1e-3 patience: 6 @@ -17,4 +17,4 @@ data: batch_size: 128 num_workers: 4 dict_kwargs: - root: "data/ucmerced" + root: 'data/ucmerced' diff --git a/requirements/package-lock.json b/package-lock.json similarity index 100% rename from requirements/package-lock.json rename to package-lock.json diff --git a/requirements/package.json b/package.json similarity index 67% rename from requirements/package.json rename to package.json index c3f82007cb1..d6e569c647e 100644 --- a/requirements/package.json +++ b/package.json @@ -3,5 +3,8 @@ "private": "true", "dependencies": { "prettier": ">=3" + }, + "prettier": { + "singleQuote": true } } diff --git a/tests/conf/agrifieldnet.yaml b/tests/conf/agrifieldnet.yaml index 42f2550910a..70c0498f252 100644 --- a/tests/conf/agrifieldnet.yaml +++ b/tests/conf/agrifieldnet.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 12 num_classes: 14 num_filters: 1 @@ -14,4 +14,4 @@ data: batch_size: 2 patch_size: 16 dict_kwargs: - paths: "tests/data/agrifieldnet" + paths: 'tests/data/agrifieldnet' diff --git a/tests/conf/bigearthnet_all.yaml b/tests/conf/bigearthnet_all.yaml index b6218986070..d24a2af4442 100644 --- a/tests/conf/bigearthnet_all.yaml +++ b/tests/conf/bigearthnet_all.yaml @@ -1,8 +1,8 @@ model: class_path: MultiLabelClassificationTask init_args: - loss: "bce" - model: "resnet18" + loss: 'bce' + model: 'resnet18' in_channels: 14 num_classes: 19 data: @@ -10,6 +10,6 @@ data: init_args: batch_size: 1 dict_kwargs: - root: "tests/data/bigearthnet" - bands: "all" + root: 'tests/data/bigearthnet' + bands: 'all' num_classes: 19 diff --git a/tests/conf/bigearthnet_s1.yaml b/tests/conf/bigearthnet_s1.yaml index 060d45dfd13..78f01ebb81a 100644 --- a/tests/conf/bigearthnet_s1.yaml +++ b/tests/conf/bigearthnet_s1.yaml @@ -1,8 +1,8 @@ model: class_path: MultiLabelClassificationTask init_args: - loss: "bce" - model: "resnet18" + loss: 'bce' + model: 'resnet18' in_channels: 2 num_classes: 19 data: @@ -10,6 +10,6 @@ data: init_args: batch_size: 1 dict_kwargs: - root: "tests/data/bigearthnet" - bands: "s1" + root: 'tests/data/bigearthnet' + bands: 's1' num_classes: 19 diff --git a/tests/conf/bigearthnet_s2.yaml b/tests/conf/bigearthnet_s2.yaml index a06fcc52be8..e1afa68c126 100644 --- a/tests/conf/bigearthnet_s2.yaml +++ b/tests/conf/bigearthnet_s2.yaml @@ -1,8 +1,8 @@ model: class_path: MultiLabelClassificationTask init_args: - loss: "bce" - model: "resnet18" + loss: 'bce' + model: 'resnet18' in_channels: 12 num_classes: 19 data: @@ -10,6 +10,6 @@ data: init_args: batch_size: 1 dict_kwargs: - root: "tests/data/bigearthnet" - bands: "s2" + root: 'tests/data/bigearthnet' + bands: 's2' num_classes: 19 diff --git a/tests/conf/cabuar.yaml b/tests/conf/cabuar.yaml index 42705a94542..0a9ba151269 100644 --- a/tests/conf/cabuar.yaml +++ b/tests/conf/cabuar.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 24 num_classes: 2 num_filters: 1 @@ -13,4 +13,4 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/cabuar" + root: 'tests/data/cabuar' diff --git a/tests/conf/chabud.yaml b/tests/conf/chabud.yaml index 08f42d23e89..3cff070bf59 100644 --- a/tests/conf/chabud.yaml +++ b/tests/conf/chabud.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 24 num_classes: 2 num_filters: 1 @@ -13,4 +13,4 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/chabud" + root: 'tests/data/chabud' diff --git a/tests/conf/chesapeake_cvpr_5.yaml b/tests/conf/chesapeake_cvpr_5.yaml index 54268ff80d9..72494f73a0a 100644 --- a/tests/conf/chesapeake_cvpr_5.yaml +++ b/tests/conf/chesapeake_cvpr_5.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "jaccard" - model: "unet" - backbone: "resnet50" + loss: 'jaccard' + model: 'unet' + backbone: 'resnet50' in_channels: 4 num_classes: 5 num_filters: 1 @@ -12,14 +12,14 @@ data: class_path: ChesapeakeCVPRDataModule init_args: train_splits: - - "de-test" + - 'de-test' val_splits: - - "de-test" + - 'de-test' test_splits: - - "de-test" + - 'de-test' batch_size: 2 patch_size: 64 class_set: 5 use_prior_labels: False dict_kwargs: - root: "tests/data/chesapeake/cvpr" + root: 'tests/data/chesapeake/cvpr' diff --git a/tests/conf/chesapeake_cvpr_7.yaml b/tests/conf/chesapeake_cvpr_7.yaml index a88df44fa0e..bc8fd4504ac 100644 --- a/tests/conf/chesapeake_cvpr_7.yaml +++ b/tests/conf/chesapeake_cvpr_7.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 4 num_classes: 7 num_filters: 1 @@ -12,14 +12,14 @@ data: class_path: ChesapeakeCVPRDataModule init_args: train_splits: - - "de-test" + - 'de-test' val_splits: - - "de-test" + - 'de-test' test_splits: - - "de-test" + - 'de-test' batch_size: 2 patch_size: 64 class_set: 7 use_prior_labels: False dict_kwargs: - root: "tests/data/chesapeake/cvpr" + root: 'tests/data/chesapeake/cvpr' diff --git a/tests/conf/chesapeake_cvpr_prior_byol.yaml b/tests/conf/chesapeake_cvpr_prior_byol.yaml index 5e6026fe85b..6198c612324 100644 --- a/tests/conf/chesapeake_cvpr_prior_byol.yaml +++ b/tests/conf/chesapeake_cvpr_prior_byol.yaml @@ -2,19 +2,19 @@ model: class_path: BYOLTask init_args: in_channels: 4 - model: "resnet18" + model: 'resnet18' data: class_path: ChesapeakeCVPRDataModule init_args: train_splits: - - "de-test" + - 'de-test' val_splits: - - "de-test" + - 'de-test' test_splits: - - "de-test" + - 'de-test' batch_size: 2 patch_size: 64 class_set: 5 use_prior_labels: True dict_kwargs: - root: "tests/data/chesapeake/cvpr" + root: 'tests/data/chesapeake/cvpr' diff --git a/tests/conf/chesapeake_cvpr_prior_moco.yaml b/tests/conf/chesapeake_cvpr_prior_moco.yaml index 17226f582dc..29d1c5c3862 100644 --- a/tests/conf/chesapeake_cvpr_prior_moco.yaml +++ b/tests/conf/chesapeake_cvpr_prior_moco.yaml @@ -1,20 +1,20 @@ model: class_path: MoCoTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 4 data: class_path: ChesapeakeCVPRDataModule init_args: train_splits: - - "de-test" + - 'de-test' val_splits: - - "de-test" + - 'de-test' test_splits: - - "de-test" + - 'de-test' batch_size: 2 patch_size: 64 class_set: 5 use_prior_labels: True dict_kwargs: - root: "tests/data/chesapeake/cvpr" + root: 'tests/data/chesapeake/cvpr' diff --git a/tests/conf/chesapeake_cvpr_prior_simclr.yaml b/tests/conf/chesapeake_cvpr_prior_simclr.yaml index 96e2f4b7b4f..8868c7c9dac 100644 --- a/tests/conf/chesapeake_cvpr_prior_simclr.yaml +++ b/tests/conf/chesapeake_cvpr_prior_simclr.yaml @@ -1,7 +1,7 @@ model: class_path: SimCLRTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 4 version: 1 layers: 2 @@ -10,14 +10,14 @@ data: class_path: ChesapeakeCVPRDataModule init_args: train_splits: - - "de-test" + - 'de-test' val_splits: - - "de-test" + - 'de-test' test_splits: - - "de-test" + - 'de-test' batch_size: 2 patch_size: 64 class_set: 5 use_prior_labels: True dict_kwargs: - root: "tests/data/chesapeake/cvpr" + root: 'tests/data/chesapeake/cvpr' diff --git a/tests/conf/cowc_counting.yaml b/tests/conf/cowc_counting.yaml index 5b161f76734..21f4430331c 100644 --- a/tests/conf/cowc_counting.yaml +++ b/tests/conf/cowc_counting.yaml @@ -4,10 +4,10 @@ model: model: resnet18 num_outputs: 1 in_channels: 3 - loss: "mse" + loss: 'mse' data: class_path: COWCCountingDataModule init_args: batch_size: 1 dict_kwargs: - root: "tests/data/cowc_counting" + root: 'tests/data/cowc_counting' diff --git a/tests/conf/cyclone.yaml b/tests/conf/cyclone.yaml index 6c4e01a4f54..2b81705bca6 100644 --- a/tests/conf/cyclone.yaml +++ b/tests/conf/cyclone.yaml @@ -1,13 +1,13 @@ model: class_path: RegressionTask init_args: - model: "resnet18" + model: 'resnet18' num_outputs: 1 in_channels: 3 - loss: "mse" + loss: 'mse' data: class_path: TropicalCycloneDataModule init_args: batch_size: 1 dict_kwargs: - root: "tests/data/cyclone" + root: 'tests/data/cyclone' diff --git a/tests/conf/deepglobelandcover.yaml b/tests/conf/deepglobelandcover.yaml index 08a29843fdc..e2e8c642477 100644 --- a/tests/conf/deepglobelandcover.yaml +++ b/tests/conf/deepglobelandcover.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 3 num_classes: 7 num_filters: 1 @@ -15,4 +15,4 @@ data: patch_size: 2 val_split_pct: 0.5 dict_kwargs: - root: "tests/data/deepglobelandcover" + root: 'tests/data/deepglobelandcover' diff --git a/tests/conf/digital_typhoon_id.yaml b/tests/conf/digital_typhoon_id.yaml index 9eb1b3eaacd..ea9e206ba75 100644 --- a/tests/conf/digital_typhoon_id.yaml +++ b/tests/conf/digital_typhoon_id.yaml @@ -1,17 +1,17 @@ model: class_path: RegressionTask init_args: - model: "resnet18" + model: 'resnet18' num_outputs: 1 in_channels: 3 - loss: "mse" + loss: 'mse' data: class_path: DigitalTyphoonDataModule init_args: batch_size: 1 - split_by: "typhoon_id" + split_by: 'typhoon_id' dict_kwargs: - root: "tests/data/digital_typhoon" + root: 'tests/data/digital_typhoon' download: true min_feature_value: wind: 10 diff --git a/tests/conf/digital_typhoon_time.yaml b/tests/conf/digital_typhoon_time.yaml index 6049a2956fd..b281be7e3c7 100644 --- a/tests/conf/digital_typhoon_time.yaml +++ b/tests/conf/digital_typhoon_time.yaml @@ -1,17 +1,17 @@ model: class_path: RegressionTask init_args: - model: "resnet18" + model: 'resnet18' num_outputs: 1 in_channels: 3 - loss: "mse" + loss: 'mse' data: class_path: DigitalTyphoonDataModule init_args: batch_size: 1 - split_by: "time" + split_by: 'time' dict_kwargs: - root: "tests/data/digital_typhoon" + root: 'tests/data/digital_typhoon' download: true min_feature_value: wind: 10 diff --git a/tests/conf/etci2021.yaml b/tests/conf/etci2021.yaml index 12505cfef1f..1606a870c52 100644 --- a/tests/conf/etci2021.yaml +++ b/tests/conf/etci2021.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 6 num_classes: 2 ignore_index: 0 @@ -12,4 +12,4 @@ data: init_args: batch_size: 1 dict_kwargs: - root: "tests/data/etci2021" + root: 'tests/data/etci2021' diff --git a/tests/conf/eurosat.yaml b/tests/conf/eurosat.yaml index 1f46015b9a1..a715bb0f7fe 100644 --- a/tests/conf/eurosat.yaml +++ b/tests/conf/eurosat.yaml @@ -1,8 +1,8 @@ model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' in_channels: 13 num_classes: 2 data: @@ -10,4 +10,4 @@ data: init_args: batch_size: 1 dict_kwargs: - root: "tests/data/eurosat" + root: 'tests/data/eurosat' diff --git a/tests/conf/eurosat100.yaml b/tests/conf/eurosat100.yaml index 590b838d19f..870658c61a3 100644 --- a/tests/conf/eurosat100.yaml +++ b/tests/conf/eurosat100.yaml @@ -1,8 +1,8 @@ model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' lr: 1e-3 patience: 6 weights: null @@ -13,4 +13,4 @@ data: init_args: batch_size: 1 dict_kwargs: - root: "tests/data/eurosat" + root: 'tests/data/eurosat' diff --git a/tests/conf/eurosatspatial.yaml b/tests/conf/eurosatspatial.yaml index d41ef82e2ae..a9f4c8d7f4b 100644 --- a/tests/conf/eurosatspatial.yaml +++ b/tests/conf/eurosatspatial.yaml @@ -1,8 +1,8 @@ model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' lr: 1e-3 patience: 6 weights: null @@ -13,4 +13,4 @@ data: init_args: batch_size: 1 dict_kwargs: - root: "tests/data/eurosat" + root: 'tests/data/eurosat' diff --git a/tests/conf/fire_risk.yaml b/tests/conf/fire_risk.yaml index ef9f275ddcb..eeaddf11529 100644 --- a/tests/conf/fire_risk.yaml +++ b/tests/conf/fire_risk.yaml @@ -1,8 +1,8 @@ model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' in_channels: 3 num_classes: 5 data: @@ -10,4 +10,4 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/fire_risk" + root: 'tests/data/fire_risk' diff --git a/tests/conf/geonrw.yaml b/tests/conf/geonrw.yaml index 689962cfa28..9b06b7833bf 100644 --- a/tests/conf/geonrw.yaml +++ b/tests/conf/geonrw.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 3 num_classes: 11 num_filters: 1 @@ -13,4 +13,4 @@ data: init_args: batch_size: 1 dict_kwargs: - root: "tests/data/geonrw" + root: 'tests/data/geonrw' diff --git a/tests/conf/gid15.yaml b/tests/conf/gid15.yaml index a3501fadf24..f6ae0b3b231 100644 --- a/tests/conf/gid15.yaml +++ b/tests/conf/gid15.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 3 num_classes: 16 num_filters: 1 @@ -15,4 +15,4 @@ data: patch_size: 2 val_split_pct: 0.5 dict_kwargs: - root: "tests/data/gid15" + root: 'tests/data/gid15' diff --git a/tests/conf/inria.yaml b/tests/conf/inria.yaml index 4fbd3ded072..01e97d3b503 100644 --- a/tests/conf/inria.yaml +++ b/tests/conf/inria.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 3 num_classes: 2 ignore_index: null @@ -13,4 +13,4 @@ data: batch_size: 1 patch_size: 2 dict_kwargs: - root: "tests/data/inria" + root: 'tests/data/inria' diff --git a/tests/conf/inria_deeplab.yaml b/tests/conf/inria_deeplab.yaml index e16ba15abe3..07b4f05c81b 100644 --- a/tests/conf/inria_deeplab.yaml +++ b/tests/conf/inria_deeplab.yaml @@ -1,14 +1,14 @@ model: class_path: PixelwiseRegressionTask init_args: - model: "deeplabv3+" - backbone: "resnet18" + model: 'deeplabv3+' + backbone: 'resnet18' in_channels: 3 - loss: "mae" + loss: 'mae' data: class_path: InriaAerialImageLabelingDataModule init_args: batch_size: 1 patch_size: 2 dict_kwargs: - root: "tests/data/inria" + root: 'tests/data/inria' diff --git a/tests/conf/inria_fcn.yaml b/tests/conf/inria_fcn.yaml index 692db059dbf..e9b78c3e0c9 100644 --- a/tests/conf/inria_fcn.yaml +++ b/tests/conf/inria_fcn.yaml @@ -1,14 +1,14 @@ model: class_path: PixelwiseRegressionTask init_args: - model: "fcn" - backbone: "resnet18" + model: 'fcn' + backbone: 'resnet18' in_channels: 3 - loss: "mae" + loss: 'mae' data: class_path: InriaAerialImageLabelingDataModule init_args: batch_size: 1 patch_size: 2 dict_kwargs: - root: "tests/data/inria" + root: 'tests/data/inria' diff --git a/tests/conf/inria_unet.yaml b/tests/conf/inria_unet.yaml index ded50ffe79c..5ebf54bead9 100644 --- a/tests/conf/inria_unet.yaml +++ b/tests/conf/inria_unet.yaml @@ -1,14 +1,14 @@ model: class_path: PixelwiseRegressionTask init_args: - model: "unet" - backbone: "resnet18" + model: 'unet' + backbone: 'resnet18' in_channels: 3 - loss: "mae" + loss: 'mae' data: class_path: InriaAerialImageLabelingDataModule init_args: batch_size: 1 patch_size: 2 dict_kwargs: - root: "tests/data/inria" + root: 'tests/data/inria' diff --git a/tests/conf/io_preprocessed.yaml b/tests/conf/io_preprocessed.yaml index 67c0d48c8a4..33e6a62da86 100644 --- a/tests/conf/io_preprocessed.yaml +++ b/tests/conf/io_preprocessed.yaml @@ -3,10 +3,10 @@ model: data: class_path: IOBenchDataModule dict_kwargs: - root: "data/io" - split: "preprocessed" + root: 'data/io' + split: 'preprocessed' checksum: true trainer: max_epochs: 1 num_sanity_val_steps: 0 - profiler: "simple" + profiler: 'simple' diff --git a/tests/conf/io_raw.yaml b/tests/conf/io_raw.yaml index 213b424e379..de0e6f211ab 100644 --- a/tests/conf/io_raw.yaml +++ b/tests/conf/io_raw.yaml @@ -3,10 +3,10 @@ model: data: class_path: IOBenchDataModule dict_kwargs: - root: "data/io" - split: "raw" + root: 'data/io' + split: 'raw' checksum: true trainer: max_epochs: 1 num_sanity_val_steps: 0 - profiler: "simple" + profiler: 'simple' diff --git a/tests/conf/iobench.yaml b/tests/conf/iobench.yaml index 888212f67a5..cffb007775a 100644 --- a/tests/conf/iobench.yaml +++ b/tests/conf/iobench.yaml @@ -6,4 +6,4 @@ data: batch_size: 2 patch_size: 16 dict_kwargs: - root: "tests/data/iobench" + root: 'tests/data/iobench' diff --git a/tests/conf/l7irish.yaml b/tests/conf/l7irish.yaml index f41e58ac020..18219d68ae8 100644 --- a/tests/conf/l7irish.yaml +++ b/tests/conf/l7irish.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 9 num_classes: 5 num_filters: 1 @@ -15,4 +15,4 @@ data: patch_size: 32 length: 5 dict_kwargs: - paths: "tests/data/l7irish" + paths: 'tests/data/l7irish' diff --git a/tests/conf/l8biome.yaml b/tests/conf/l8biome.yaml index a03b171cd5a..85f5b09948a 100644 --- a/tests/conf/l8biome.yaml +++ b/tests/conf/l8biome.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 11 num_classes: 5 num_filters: 1 @@ -15,4 +15,4 @@ data: patch_size: 32 length: 5 dict_kwargs: - paths: "tests/data/l8biome" + paths: 'tests/data/l8biome' diff --git a/tests/conf/landcoverai.yaml b/tests/conf/landcoverai.yaml index 146be68bb81..c27d936844d 100644 --- a/tests/conf/landcoverai.yaml +++ b/tests/conf/landcoverai.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 3 num_classes: 5 num_filters: 1 @@ -13,4 +13,4 @@ data: init_args: batch_size: 1 dict_kwargs: - root: "tests/data/landcoverai" + root: 'tests/data/landcoverai' diff --git a/tests/conf/loveda.yaml b/tests/conf/loveda.yaml index d68d44dadbc..3107db88c81 100644 --- a/tests/conf/loveda.yaml +++ b/tests/conf/loveda.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 3 num_classes: 8 num_filters: 1 @@ -13,4 +13,4 @@ data: init_args: batch_size: 1 dict_kwargs: - root: "tests/data/loveda" + root: 'tests/data/loveda' diff --git a/tests/conf/naipchesapeake.yaml b/tests/conf/naipchesapeake.yaml index 9a9f14d678d..09eb2fca53c 100644 --- a/tests/conf/naipchesapeake.yaml +++ b/tests/conf/naipchesapeake.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "deeplabv3+" - backbone: "resnet18" + loss: 'ce' + model: 'deeplabv3+' + backbone: 'resnet18' in_channels: 4 num_classes: 128 num_filters: 1 @@ -14,5 +14,5 @@ data: batch_size: 2 patch_size: 32 dict_kwargs: - naip_paths: "tests/data/naip" - chesapeake_paths: "tests/data/chesapeake/lulc" + naip_paths: 'tests/data/naip' + chesapeake_paths: 'tests/data/chesapeake/lulc' diff --git a/tests/conf/nasa_marine_debris.yaml b/tests/conf/nasa_marine_debris.yaml index f70bb35d9a5..92546a592ec 100644 --- a/tests/conf/nasa_marine_debris.yaml +++ b/tests/conf/nasa_marine_debris.yaml @@ -1,12 +1,12 @@ model: class_path: ObjectDetectionTask init_args: - model: "faster-rcnn" - backbone: "resnet18" + model: 'faster-rcnn' + backbone: 'resnet18' num_classes: 2 data: class_path: NASAMarineDebrisDataModule init_args: batch_size: 1 dict_kwargs: - root: "tests/data/nasa_marine_debris" + root: 'tests/data/nasa_marine_debris' diff --git a/tests/conf/potsdam2d.yaml b/tests/conf/potsdam2d.yaml index 362ec81815d..31ea7441950 100644 --- a/tests/conf/potsdam2d.yaml +++ b/tests/conf/potsdam2d.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 4 num_classes: 6 num_filters: 1 @@ -15,4 +15,4 @@ data: patch_size: 2 val_split_pct: 0.5 dict_kwargs: - root: "tests/data/potsdam" + root: 'tests/data/potsdam' diff --git a/tests/conf/quakeset.yaml b/tests/conf/quakeset.yaml index 9e1ed17542e..0f1df7baa4b 100644 --- a/tests/conf/quakeset.yaml +++ b/tests/conf/quakeset.yaml @@ -1,8 +1,8 @@ model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' in_channels: 4 num_classes: 2 data: @@ -10,4 +10,4 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/quakeset" + root: 'tests/data/quakeset' diff --git a/tests/conf/resisc45.yaml b/tests/conf/resisc45.yaml index 692bca17989..567987aea54 100644 --- a/tests/conf/resisc45.yaml +++ b/tests/conf/resisc45.yaml @@ -1,8 +1,8 @@ model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' in_channels: 3 num_classes: 3 data: @@ -10,4 +10,4 @@ data: init_args: batch_size: 1 dict_kwargs: - root: "tests/data/resisc45" + root: 'tests/data/resisc45' diff --git a/tests/conf/seco_byol_1.yaml b/tests/conf/seco_byol_1.yaml index 83c996df913..64440125cea 100644 --- a/tests/conf/seco_byol_1.yaml +++ b/tests/conf/seco_byol_1.yaml @@ -2,11 +2,11 @@ model: class_path: BYOLTask init_args: in_channels: 3 - model: "resnet18" + model: 'resnet18' data: class_path: SeasonalContrastS2DataModule init_args: batch_size: 2 dict_kwargs: - root: "tests/data/seco" + root: 'tests/data/seco' seasons: 1 diff --git a/tests/conf/seco_byol_2.yaml b/tests/conf/seco_byol_2.yaml index 15aaa69dddf..521e03f1771 100644 --- a/tests/conf/seco_byol_2.yaml +++ b/tests/conf/seco_byol_2.yaml @@ -2,11 +2,11 @@ model: class_path: BYOLTask init_args: in_channels: 3 - model: "resnet18" + model: 'resnet18' data: class_path: SeasonalContrastS2DataModule init_args: batch_size: 2 dict_kwargs: - root: "tests/data/seco" + root: 'tests/data/seco' seasons: 2 diff --git a/tests/conf/seco_moco_1.yaml b/tests/conf/seco_moco_1.yaml index 03800c1929d..55d06e8173d 100644 --- a/tests/conf/seco_moco_1.yaml +++ b/tests/conf/seco_moco_1.yaml @@ -1,7 +1,7 @@ model: class_path: MoCoTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 3 version: 1 weight_decay: 1e-4 @@ -13,5 +13,5 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/seco" + root: 'tests/data/seco' seasons: 1 diff --git a/tests/conf/seco_moco_2.yaml b/tests/conf/seco_moco_2.yaml index ba6a258ad2a..919a10e3d4f 100644 --- a/tests/conf/seco_moco_2.yaml +++ b/tests/conf/seco_moco_2.yaml @@ -1,7 +1,7 @@ model: class_path: MoCoTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 3 version: 2 layers: 2 @@ -16,5 +16,5 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/seco" + root: 'tests/data/seco' seasons: 2 diff --git a/tests/conf/seco_simclr_1.yaml b/tests/conf/seco_simclr_1.yaml index a955d6330bb..45df100ff4f 100644 --- a/tests/conf/seco_simclr_1.yaml +++ b/tests/conf/seco_simclr_1.yaml @@ -1,7 +1,7 @@ model: class_path: SimCLRTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 3 version: 1 layers: 2 @@ -14,5 +14,5 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/seco" + root: 'tests/data/seco' seasons: 1 diff --git a/tests/conf/seco_simclr_2.yaml b/tests/conf/seco_simclr_2.yaml index 6940fcfdfb7..8a4531e30f4 100644 --- a/tests/conf/seco_simclr_2.yaml +++ b/tests/conf/seco_simclr_2.yaml @@ -1,7 +1,7 @@ model: class_path: SimCLRTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 3 version: 2 layers: 4 @@ -14,5 +14,5 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/seco" + root: 'tests/data/seco' seasons: 2 diff --git a/tests/conf/sen12ms_all.yaml b/tests/conf/sen12ms_all.yaml index 3f83fa55085..d3aadd7d2f1 100644 --- a/tests/conf/sen12ms_all.yaml +++ b/tests/conf/sen12ms_all.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 15 num_classes: 11 ignore_index: null @@ -11,6 +11,6 @@ data: class_path: SEN12MSDataModule init_args: batch_size: 1 - band_set: "all" + band_set: 'all' dict_kwargs: - root: "tests/data/sen12ms" + root: 'tests/data/sen12ms' diff --git a/tests/conf/sen12ms_s1.yaml b/tests/conf/sen12ms_s1.yaml index 7e536d9e35a..ce790ca65de 100644 --- a/tests/conf/sen12ms_s1.yaml +++ b/tests/conf/sen12ms_s1.yaml @@ -1,10 +1,10 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "focal" - model: "fcn" + loss: 'focal' + model: 'fcn' num_filters: 1 - backbone: "resnet18" + backbone: 'resnet18' in_channels: 2 num_classes: 11 ignore_index: null @@ -12,6 +12,6 @@ data: class_path: SEN12MSDataModule init_args: batch_size: 1 - band_set: "s1" + band_set: 's1' dict_kwargs: - root: "tests/data/sen12ms" + root: 'tests/data/sen12ms' diff --git a/tests/conf/sen12ms_s2_all.yaml b/tests/conf/sen12ms_s2_all.yaml index b98d59d0c7f..9bcd1de1cf7 100644 --- a/tests/conf/sen12ms_s2_all.yaml +++ b/tests/conf/sen12ms_s2_all.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 13 num_classes: 11 ignore_index: null @@ -11,6 +11,6 @@ data: class_path: SEN12MSDataModule init_args: batch_size: 1 - band_set: "s2-all" + band_set: 's2-all' dict_kwargs: - root: "tests/data/sen12ms" + root: 'tests/data/sen12ms' diff --git a/tests/conf/sen12ms_s2_reduced.yaml b/tests/conf/sen12ms_s2_reduced.yaml index 770efaa6549..9e6ca651e64 100644 --- a/tests/conf/sen12ms_s2_reduced.yaml +++ b/tests/conf/sen12ms_s2_reduced.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 6 num_classes: 11 ignore_index: null @@ -11,6 +11,6 @@ data: class_path: SEN12MSDataModule init_args: batch_size: 1 - band_set: "s2-reduced" + band_set: 's2-reduced' dict_kwargs: - root: "tests/data/sen12ms" + root: 'tests/data/sen12ms' diff --git a/tests/conf/sentinel2_cdl.yaml b/tests/conf/sentinel2_cdl.yaml index 9cb192bd819..5a2928eaf99 100644 --- a/tests/conf/sentinel2_cdl.yaml +++ b/tests/conf/sentinel2_cdl.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 13 num_classes: 134 num_filters: 1 @@ -14,5 +14,5 @@ data: batch_size: 2 patch_size: 16 dict_kwargs: - cdl_paths: "tests/data/cdl" - sentinel2_paths: "tests/data/sentinel2" + cdl_paths: 'tests/data/cdl' + sentinel2_paths: 'tests/data/sentinel2' diff --git a/tests/conf/sentinel2_eurocrops.yaml b/tests/conf/sentinel2_eurocrops.yaml index b3633d3590d..760e8fd718a 100644 --- a/tests/conf/sentinel2_eurocrops.yaml +++ b/tests/conf/sentinel2_eurocrops.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 13 num_classes: 3 num_filters: 1 @@ -13,5 +13,5 @@ data: batch_size: 2 patch_size: 16 dict_kwargs: - sentinel2_paths: "tests/data/sentinel2" - eurocrops_paths: "tests/data/eurocrops" + sentinel2_paths: 'tests/data/sentinel2' + eurocrops_paths: 'tests/data/eurocrops' diff --git a/tests/conf/sentinel2_nccm.yaml b/tests/conf/sentinel2_nccm.yaml index 0244455863d..97af8efa06b 100644 --- a/tests/conf/sentinel2_nccm.yaml +++ b/tests/conf/sentinel2_nccm.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 13 num_classes: 5 num_filters: 1 @@ -14,5 +14,5 @@ data: batch_size: 2 patch_size: 16 dict_kwargs: - nccm_paths: "tests/data/nccm" - sentinel2_paths: "tests/data/sentinel2" + nccm_paths: 'tests/data/nccm' + sentinel2_paths: 'tests/data/sentinel2' diff --git a/tests/conf/sentinel2_south_america_soybean.yaml b/tests/conf/sentinel2_south_america_soybean.yaml index 7fe95704950..1c788d1f197 100644 --- a/tests/conf/sentinel2_south_america_soybean.yaml +++ b/tests/conf/sentinel2_south_america_soybean.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "deeplabv3+" - backbone: "resnet18" + loss: 'ce' + model: 'deeplabv3+' + backbone: 'resnet18' in_channels: 13 num_classes: 2 num_filters: 1 @@ -13,5 +13,5 @@ data: batch_size: 2 patch_size: 16 dict_kwargs: - south_america_soybean_paths: "tests/data/south_america_soybean" - sentinel2_paths: "tests/data/sentinel2" + south_america_soybean_paths: 'tests/data/south_america_soybean' + sentinel2_paths: 'tests/data/sentinel2' diff --git a/tests/conf/skippd.yaml b/tests/conf/skippd.yaml index e86e24ec415..3d40f203b70 100644 --- a/tests/conf/skippd.yaml +++ b/tests/conf/skippd.yaml @@ -1,14 +1,14 @@ model: class_path: RegressionTask init_args: - model: "resnet18" + model: 'resnet18' num_outputs: 1 in_channels: 3 - loss: "mse" + loss: 'mse' data: class_path: SKIPPDDataModule init_args: batch_size: 1 val_split_pct: 0.4 dict_kwargs: - root: "tests/data/skippd" + root: 'tests/data/skippd' diff --git a/tests/conf/so2sat_all.yaml b/tests/conf/so2sat_all.yaml index c728c9d7179..736c98d2d18 100644 --- a/tests/conf/so2sat_all.yaml +++ b/tests/conf/so2sat_all.yaml @@ -1,15 +1,15 @@ model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' in_channels: 18 num_classes: 17 data: class_path: So2SatDataModule init_args: batch_size: 1 - band_set: "all" + band_set: 'all' dict_kwargs: - root: "tests/data/so2sat" - version: "2" + root: 'tests/data/so2sat' + version: '2' diff --git a/tests/conf/so2sat_rgb.yaml b/tests/conf/so2sat_rgb.yaml index 66e1e223561..840cae6534a 100644 --- a/tests/conf/so2sat_rgb.yaml +++ b/tests/conf/so2sat_rgb.yaml @@ -1,16 +1,16 @@ model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' in_channels: 3 num_classes: 17 data: class_path: So2SatDataModule init_args: batch_size: 1 - band_set: "rgb" + band_set: 'rgb' val_split_pct: 0.5 dict_kwargs: - root: "tests/data/so2sat" - version: "3_random" + root: 'tests/data/so2sat' + version: '3_random' diff --git a/tests/conf/so2sat_s1.yaml b/tests/conf/so2sat_s1.yaml index df7a9cb1ea9..cd15c91c248 100644 --- a/tests/conf/so2sat_s1.yaml +++ b/tests/conf/so2sat_s1.yaml @@ -1,15 +1,15 @@ model: class_path: ClassificationTask init_args: - loss: "focal" - model: "resnet18" + loss: 'focal' + model: 'resnet18' in_channels: 8 num_classes: 17 data: class_path: So2SatDataModule init_args: batch_size: 1 - band_set: "s1" + band_set: 's1' dict_kwargs: - root: "tests/data/so2sat" - version: "2" + root: 'tests/data/so2sat' + version: '2' diff --git a/tests/conf/so2sat_s2.yaml b/tests/conf/so2sat_s2.yaml index fb41099e60e..828b9f04fc5 100644 --- a/tests/conf/so2sat_s2.yaml +++ b/tests/conf/so2sat_s2.yaml @@ -1,14 +1,14 @@ model: class_path: ClassificationTask init_args: - loss: "jaccard" - model: "resnet18" + loss: 'jaccard' + model: 'resnet18' in_channels: 10 num_classes: 17 data: class_path: So2SatDataModule init_args: batch_size: 1 - band_set: "s2" + band_set: 's2' dict_kwargs: - root: "tests/data/so2sat" + root: 'tests/data/so2sat' diff --git a/tests/conf/southafricacroptype.yaml b/tests/conf/southafricacroptype.yaml index cfd4f8dfecf..d409e535e9d 100644 --- a/tests/conf/southafricacroptype.yaml +++ b/tests/conf/southafricacroptype.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 12 num_classes: 10 num_filters: 1 @@ -14,4 +14,4 @@ data: batch_size: 2 patch_size: 16 dict_kwargs: - paths: "tests/data/south_africa_crop_type" + paths: 'tests/data/south_africa_crop_type' diff --git a/tests/conf/spacenet1.yaml b/tests/conf/spacenet1.yaml index 3fc23118725..275e54eee0f 100644 --- a/tests/conf/spacenet1.yaml +++ b/tests/conf/spacenet1.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 3 num_classes: 3 num_filters: 1 @@ -15,4 +15,4 @@ data: val_split_pct: 0.34 test_split_pct: 0.34 dict_kwargs: - root: "tests/data/spacenet" + root: 'tests/data/spacenet' diff --git a/tests/conf/ssl4eo_l_benchmark_cdl.yaml b/tests/conf/ssl4eo_l_benchmark_cdl.yaml index a4a4a7b9203..842c3577970 100644 --- a/tests/conf/ssl4eo_l_benchmark_cdl.yaml +++ b/tests/conf/ssl4eo_l_benchmark_cdl.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 7 num_classes: 134 num_filters: 1 @@ -13,6 +13,6 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo_benchmark_landsat" - sensor: "tm_toa" - product: "cdl" + root: 'tests/data/ssl4eo_benchmark_landsat' + sensor: 'tm_toa' + product: 'cdl' diff --git a/tests/conf/ssl4eo_l_benchmark_nlcd.yaml b/tests/conf/ssl4eo_l_benchmark_nlcd.yaml index 89475a091b0..040fab72a53 100644 --- a/tests/conf/ssl4eo_l_benchmark_nlcd.yaml +++ b/tests/conf/ssl4eo_l_benchmark_nlcd.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 6 num_classes: 17 num_filters: 1 @@ -13,6 +13,6 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo_benchmark_landsat" - sensor: "etm_sr" - product: "nlcd" + root: 'tests/data/ssl4eo_benchmark_landsat' + sensor: 'etm_sr' + product: 'nlcd' diff --git a/tests/conf/ssl4eo_l_byol_1.yaml b/tests/conf/ssl4eo_l_byol_1.yaml index ed78b7fae37..71151f52d28 100644 --- a/tests/conf/ssl4eo_l_byol_1.yaml +++ b/tests/conf/ssl4eo_l_byol_1.yaml @@ -2,12 +2,12 @@ model: class_path: BYOLTask init_args: in_channels: 7 - model: "resnet18" + model: 'resnet18' data: class_path: SSL4EOLDataModule init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/l" - split: "tm_toa" + root: 'tests/data/ssl4eo/l' + split: 'tm_toa' seasons: 1 diff --git a/tests/conf/ssl4eo_l_byol_2.yaml b/tests/conf/ssl4eo_l_byol_2.yaml index 6e1c6ab060d..3a2f3df24d9 100644 --- a/tests/conf/ssl4eo_l_byol_2.yaml +++ b/tests/conf/ssl4eo_l_byol_2.yaml @@ -2,12 +2,12 @@ model: class_path: BYOLTask init_args: in_channels: 6 - model: "resnet18" + model: 'resnet18' data: class_path: SSL4EOLDataModule init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/l" - split: "etm_sr" + root: 'tests/data/ssl4eo/l' + split: 'etm_sr' seasons: 2 diff --git a/tests/conf/ssl4eo_l_moco_1.yaml b/tests/conf/ssl4eo_l_moco_1.yaml index 023f1ff9b66..d15bf8b15b9 100644 --- a/tests/conf/ssl4eo_l_moco_1.yaml +++ b/tests/conf/ssl4eo_l_moco_1.yaml @@ -1,7 +1,7 @@ model: class_path: MoCoTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 9 version: 1 weight_decay: 1e-4 @@ -19,6 +19,6 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/l" - split: "etm_toa" + root: 'tests/data/ssl4eo/l' + split: 'etm_toa' seasons: 1 diff --git a/tests/conf/ssl4eo_l_moco_2.yaml b/tests/conf/ssl4eo_l_moco_2.yaml index 3edf6a52487..3eac4a5cb0d 100644 --- a/tests/conf/ssl4eo_l_moco_2.yaml +++ b/tests/conf/ssl4eo_l_moco_2.yaml @@ -1,7 +1,7 @@ model: class_path: MoCoTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 11 version: 2 layers: 2 @@ -16,6 +16,6 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/l" - split: "oli_tirs_toa" + root: 'tests/data/ssl4eo/l' + split: 'oli_tirs_toa' seasons: 2 diff --git a/tests/conf/ssl4eo_l_simclr_1.yaml b/tests/conf/ssl4eo_l_simclr_1.yaml index b705579173f..c6249900dd4 100644 --- a/tests/conf/ssl4eo_l_simclr_1.yaml +++ b/tests/conf/ssl4eo_l_simclr_1.yaml @@ -1,7 +1,7 @@ model: class_path: SimCLRTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 7 version: 1 layers: 2 @@ -14,6 +14,6 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/l" - split: "oli_sr" + root: 'tests/data/ssl4eo/l' + split: 'oli_sr' seasons: 1 diff --git a/tests/conf/ssl4eo_l_simclr_2.yaml b/tests/conf/ssl4eo_l_simclr_2.yaml index 7310bba9e95..63ebfc2c111 100644 --- a/tests/conf/ssl4eo_l_simclr_2.yaml +++ b/tests/conf/ssl4eo_l_simclr_2.yaml @@ -1,7 +1,7 @@ model: class_path: SimCLRTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 7 version: 2 layers: 3 @@ -14,6 +14,6 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/l" - split: "tm_toa" + root: 'tests/data/ssl4eo/l' + split: 'tm_toa' seasons: 2 diff --git a/tests/conf/ssl4eo_s12_byol_1.yaml b/tests/conf/ssl4eo_s12_byol_1.yaml index ccdf4b5736d..aeba268fb89 100644 --- a/tests/conf/ssl4eo_s12_byol_1.yaml +++ b/tests/conf/ssl4eo_s12_byol_1.yaml @@ -2,12 +2,12 @@ model: class_path: BYOLTask init_args: in_channels: 2 - model: "resnet18" + model: 'resnet18' data: class_path: SSL4EOS12DataModule init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/s12" - split: "s1" + root: 'tests/data/ssl4eo/s12' + split: 's1' seasons: 1 diff --git a/tests/conf/ssl4eo_s12_byol_2.yaml b/tests/conf/ssl4eo_s12_byol_2.yaml index 6368e8fdefe..a9f602a1294 100644 --- a/tests/conf/ssl4eo_s12_byol_2.yaml +++ b/tests/conf/ssl4eo_s12_byol_2.yaml @@ -2,12 +2,12 @@ model: class_path: BYOLTask init_args: in_channels: 13 - model: "resnet18" + model: 'resnet18' data: class_path: SSL4EOS12DataModule init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/s12" - split: "s2c" + root: 'tests/data/ssl4eo/s12' + split: 's2c' seasons: 2 diff --git a/tests/conf/ssl4eo_s12_moco_1.yaml b/tests/conf/ssl4eo_s12_moco_1.yaml index 513d5ae0842..29678057c33 100644 --- a/tests/conf/ssl4eo_s12_moco_1.yaml +++ b/tests/conf/ssl4eo_s12_moco_1.yaml @@ -1,7 +1,7 @@ model: class_path: MoCoTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 12 version: 1 weight_decay: 1e-4 @@ -13,6 +13,6 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/s12" - split: "s2a" + root: 'tests/data/ssl4eo/s12' + split: 's2a' seasons: 1 diff --git a/tests/conf/ssl4eo_s12_moco_2.yaml b/tests/conf/ssl4eo_s12_moco_2.yaml index 71d8ee43dc7..e20ea55363e 100644 --- a/tests/conf/ssl4eo_s12_moco_2.yaml +++ b/tests/conf/ssl4eo_s12_moco_2.yaml @@ -1,7 +1,7 @@ model: class_path: MoCoTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 2 version: 2 layers: 2 @@ -16,6 +16,6 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/s12" - split: "s1" + root: 'tests/data/ssl4eo/s12' + split: 's1' seasons: 2 diff --git a/tests/conf/ssl4eo_s12_simclr_1.yaml b/tests/conf/ssl4eo_s12_simclr_1.yaml index 94444be5cc9..b6316034b2b 100644 --- a/tests/conf/ssl4eo_s12_simclr_1.yaml +++ b/tests/conf/ssl4eo_s12_simclr_1.yaml @@ -1,7 +1,7 @@ model: class_path: SimCLRTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 13 version: 1 layers: 2 @@ -14,6 +14,6 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/s12" - split: "s2c" + root: 'tests/data/ssl4eo/s12' + split: 's2c' seasons: 1 diff --git a/tests/conf/ssl4eo_s12_simclr_2.yaml b/tests/conf/ssl4eo_s12_simclr_2.yaml index 7d88a3713ba..50bcbddf8a2 100644 --- a/tests/conf/ssl4eo_s12_simclr_2.yaml +++ b/tests/conf/ssl4eo_s12_simclr_2.yaml @@ -1,7 +1,7 @@ model: class_path: SimCLRTask init_args: - model: "resnet18" + model: 'resnet18' in_channels: 12 version: 2 layers: 3 @@ -14,6 +14,6 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ssl4eo/s12" - split: "s2a" + root: 'tests/data/ssl4eo/s12' + split: 's2a' seasons: 2 diff --git a/tests/conf/sustainbench_crop_yield.yaml b/tests/conf/sustainbench_crop_yield.yaml index 0358f6e7bd7..83a44daa305 100644 --- a/tests/conf/sustainbench_crop_yield.yaml +++ b/tests/conf/sustainbench_crop_yield.yaml @@ -1,13 +1,13 @@ model: class_path: RegressionTask init_args: - model: "resnet18" + model: 'resnet18' num_outputs: 1 in_channels: 9 - loss: "mse" + loss: 'mse' data: class_path: SustainBenchCropYieldDataModule init_args: batch_size: 1 dict_kwargs: - root: "tests/data/sustainbench_crop_yield" + root: 'tests/data/sustainbench_crop_yield' diff --git a/tests/conf/ucmerced.yaml b/tests/conf/ucmerced.yaml index c403ce281ae..051112f540b 100644 --- a/tests/conf/ucmerced.yaml +++ b/tests/conf/ucmerced.yaml @@ -1,8 +1,8 @@ model: class_path: ClassificationTask init_args: - loss: "ce" - model: "resnet18" + loss: 'ce' + model: 'resnet18' in_channels: 3 num_classes: 2 data: @@ -10,4 +10,4 @@ data: init_args: batch_size: 2 dict_kwargs: - root: "tests/data/ucmerced" + root: 'tests/data/ucmerced' diff --git a/tests/conf/vaihingen2d.yaml b/tests/conf/vaihingen2d.yaml index 00404756ace..d0a4e6b948a 100644 --- a/tests/conf/vaihingen2d.yaml +++ b/tests/conf/vaihingen2d.yaml @@ -1,9 +1,9 @@ model: class_path: SemanticSegmentationTask init_args: - loss: "ce" - model: "unet" - backbone: "resnet18" + loss: 'ce' + model: 'unet' + backbone: 'resnet18' in_channels: 3 num_classes: 7 num_filters: 1 @@ -15,4 +15,4 @@ data: patch_size: 2 val_split_pct: 0.5 dict_kwargs: - root: "tests/data/vaihingen" + root: 'tests/data/vaihingen' diff --git a/tests/conf/vhr10.yaml b/tests/conf/vhr10.yaml index 865847d7cbd..9faab1187a6 100644 --- a/tests/conf/vhr10.yaml +++ b/tests/conf/vhr10.yaml @@ -1,8 +1,8 @@ model: class_path: ObjectDetectionTask init_args: - model: "faster-rcnn" - backbone: "resnet50" + model: 'faster-rcnn' + backbone: 'resnet50' num_classes: 11 lr: 2.5e-5 patience: 10 @@ -13,4 +13,4 @@ data: num_workers: 0 patch_size: 4 dict_kwargs: - root: "tests/data/vhr10" + root: 'tests/data/vhr10'