TorchGeo: datasets, samplers, transforms, and pre-trained models for geospatial data
Перейти к файлу
Caleb Robinson 2ac238606c Mapping all non-class values to nodata 2021-08-02 16:34:18 -05:00
.github/workflows Drop Python 3.6 support 2021-07-30 12:03:38 -05:00
conf Refactor trainer logic (#54) 2021-07-30 20:58:49 -05:00
docs Better examples 2021-08-02 12:33:47 -07:00
tests Add NAIP dataset 2021-08-02 12:33:47 -07:00
torchgeo Mapping all non-class values to nodata 2021-08-02 16:34:18 -05:00
.flake8 Pytorch lightning based training framework (#42) 2021-07-17 16:57:18 -07:00
.gitattributes gitattributes files don't automatically recurse 2021-06-22 00:00:41 +00:00
.gitignore Pytorch lightning based training framework (#42) 2021-07-17 16:57:18 -07:00
CODE_OF_CONDUCT.md Add Microsoft open-source template 2021-05-21 11:35:58 -05:00
LICENSE Add Microsoft open-source template 2021-05-21 11:35:58 -05:00
Makefile Refactor trainer logic (#54) 2021-07-30 20:58:49 -05:00
README.md Refactor trainer logic (#54) 2021-07-30 20:58:49 -05:00
SECURITY.md Add Microsoft open-source template 2021-05-21 11:35:58 -05:00
SUPPORT.md Add Microsoft open-source template 2021-05-21 11:35:58 -05:00
environment.yml Refactor trainer logic (#54) 2021-07-30 20:58:49 -05:00
pyproject.toml Drop Python 3.6 support 2021-07-30 12:03:38 -05:00
requirements.txt Remove dependency on cartopy (#51) 2021-07-27 10:19:50 -07:00
setup.cfg Drop Python 3.6 support 2021-07-30 12:03:38 -05:00
setup.py Also document setup.py 2021-07-19 15:10:29 +00:00
spack.yaml Drop Python 3.6 support 2021-07-30 12:03:38 -05:00
train.py Refactor trainer logic (#54) 2021-07-30 20:58:49 -05:00

README.md

TorchGeo

Datasets, transforms, and models for geospatial data.

docs style tests

Project setup

Conda

conda config --set channel_priority false
conda env create --file environment.yml
conda activate torchgeo

# verify that the PyTorch can use the GPU
python -c "import torch; print(torch.cuda.is_available())"

Example training run

# run the training script with a config file
python train.py config_file=conf/landcoverai.yaml

Developing

make tests

Datasets

Dataset Imagery Type Label Type Dataset Type External Link
Smallholder Cashew Plantations in Benin Sentinel-2 (71 scene time series) Semantic segmentation GeoDataset https://registry.mlhub.earth/10.34911/rdnt.hfv20i/
Cars Overhead With Context (COWC) 0.15m/px overhead imagery Object detection VisionDataset https://gdo152.llnl.gov/cowc/
CV4A Kenya Crop Type Sentinel-2 (13 scene time series) Semantic segmentation GeoDataset https://registry.mlhub.earth/10.34911/rdnt.dw605x/
Tropical Cyclone Wind Estimation GOES single band imagery Regression VisionDataset http://registry.mlhub.earth/10.34911/rdnt.xs53up/
Landcover.ai RGB aerial imagery at 0.5m/px and 0.25m/px Semantic segmentation GeoDataset https://landcover.ai/
NWPU VHR-10 Google Earth RGB and Vaihingen CIR Object detection VisionDataset https://github.com/chaozhong2010/VHR-10_dataset_coco
SEN12MS Sentinel-1 and Sentinel-2 Semantic segmentation GeoDataset https://github.com/schmitt-muc/SEN12MS
So2Sat Sentinel-1 and Sentinel-2 Classification VisionDataset https://github.com/zhu-xlab/So2Sat-LCZ42

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.