-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
126 changed files
with
4,671 additions
and
571 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
- name: Build project | ||
run: python3 -m build | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4.4.3 | ||
uses: actions/upload-artifact@v4.5.0 | ||
with: | ||
name: pypi-dist | ||
path: dist/ | ||
|
@@ -42,4 +42,4 @@ jobs: | |
name: pypi-dist | ||
path: dist/ | ||
- name: Publish to PyPI | ||
uses: pypa/[email protected].2 | ||
uses: pypa/[email protected].3 |
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 |
---|---|---|
|
@@ -17,15 +17,16 @@ jobs: | |
- name: Clone repo | ||
uses: actions/[email protected] | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.1.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-integration | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }} | ||
- name: Install pip dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
|
@@ -45,15 +46,16 @@ jobs: | |
- name: Clone repo | ||
uses: actions/[email protected] | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.1.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-tutorials | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }}-tutorials | ||
- name: Install pip dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -19,15 +19,16 @@ jobs: | |
- name: Clone repo | ||
uses: actions/[email protected] | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.1.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements/required.txt') }}-${{ hashFiles('requirements/datasets.txt') }}-${{ hashFiles('requirements/style.txt') }}-${{ hashFiles('requirements/tests.txt') }} | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements/required.txt', 'requirements/datasets.txt', 'requirements/style.txt', 'requirements/tests.txt') }} | ||
- name: Install pip dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
|
@@ -44,15 +45,16 @@ jobs: | |
- name: Clone repo | ||
uses: actions/[email protected] | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.1.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements/style.txt') }} | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements/style.txt') }} | ||
- name: Install pip dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -23,15 +23,16 @@ jobs: | |
- name: Clone repo | ||
uses: actions/[email protected] | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.1.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements/required.txt') }}-${{ hashFiles('requirements/datasets.txt') }}-${{ hashFiles('requirements/tests.txt') }} | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements/required.txt', 'requirements/datasets.txt', 'requirements/tests.txt') }} | ||
if: ${{ runner.os != 'macOS' }} | ||
- name: Setup headless display for pyvista | ||
uses: pyvista/setup-headless-display-action@v3 | ||
|
@@ -47,7 +48,7 @@ jobs: | |
pytest --cov --cov-report=xml | ||
python3 -m torchgeo --help | ||
- name: Report coverage | ||
uses: codecov/codecov-action@v5.0.2 | ||
uses: codecov/codecov-action@v5.1.2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
minimum: | ||
|
@@ -57,15 +58,16 @@ jobs: | |
- name: Clone repo | ||
uses: actions/[email protected] | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.10' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.1.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements/min-reqs.old') }} | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements/min-reqs.old') }} | ||
- name: Setup headless display for pyvista | ||
uses: pyvista/setup-headless-display-action@v3 | ||
- name: Install pip dependencies | ||
|
@@ -80,7 +82,7 @@ jobs: | |
pytest --cov --cov-report=xml | ||
python3 -m torchgeo --help | ||
- name: Report coverage | ||
uses: codecov/codecov-action@v5.0.2 | ||
uses: codecov/codecov-action@v5.1.2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
datasets: | ||
|
@@ -90,15 +92,16 @@ jobs: | |
- name: Clone repo | ||
uses: actions/[email protected] | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.1.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements/required.txt') }}-${{ hashFiles('requirements/tests.txt') }} | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements/required.txt', 'requirements/tests.txt') }} | ||
- name: Install pip dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
|
@@ -111,7 +114,7 @@ jobs: | |
pytest --cov --cov-report=xml | ||
python3 -m torchgeo --help | ||
- name: Report coverage | ||
uses: codecov/codecov-action@v5.0.2 | ||
uses: codecov/codecov-action@v5.1.2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
concurrency: | ||
|
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 |
---|---|---|
|
@@ -21,15 +21,16 @@ jobs: | |
- name: Clone repo | ||
uses: actions/[email protected] | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.1.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements/required.txt') }}-${{ hashFiles('requirements/docs.txt') }}-${{ hashFiles('requirements/tests.txt') }}-tutorials | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements/required.txt', 'requirements/docs.txt', 'requirements/tests.txt') }}-tutorials | ||
- name: Install pip dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
|
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,20 @@ | ||
Basic Usage | ||
=========== | ||
|
||
The following tutorials introduce the basic concepts and components of TorchGeo: | ||
|
||
* `Transforms <transforms.ipynb>`_: Preprocessing and data augmentation transforms for geospatial data | ||
* `Spectral Indices <indices.ipynb>`_: Visualizing and appending spectral indices | ||
* `Pretrained Weights <pretrained_weights.ipynb>`_: Models and pretrained weights | ||
* `Lightning Trainers <trainers.ipynb>`_: PyTorch Lightning data modules and trainers | ||
* `Command-Line Interface <cli.ipynb>`_: TorchGeo's command-line interface | ||
|
||
.. toctree:: | ||
:hidden: | ||
:maxdepth: 1 | ||
|
||
transforms | ||
indices | ||
pretrained_weights | ||
trainers | ||
cli |
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,14 @@ | ||
Case Studies | ||
============ | ||
|
||
The following case studies present end-to-end workflows for common use cases of geospatial machine learning: | ||
|
||
* `Earth Surface Water <earth_surface_water.ipynb>`_: A workflow for mapping surface water, including lakes and rivers | ||
|
||
Do you have a use case that is missing from this list? Please open a pull request to add tutorials for your own use cases. | ||
|
||
.. toctree:: | ||
:hidden: | ||
:maxdepth: 1 | ||
|
||
earth_surface_water |
Oops, something went wrong.