* Add dataset and datamodule
* Add docs
* Tests
* Ran ruff one time
* Fixture needs a params kwarg
* Make dataset work
* Add versionadded to datamodule
* Add conf file to test new datamodule
* Test datamodule
* Changing dataset URL
* Update main hash
* add SENTINEL2_MS_MI_SATLAS
* add SENTINEL2_MS_SI_SATLAS
* fix style
* ruff
* Add all SatlasPretrain models
* Get local tests passing
* Get local tests passing
* Fix remote tests
* Mock input channels in testing too
* Fix license
* Fix band order
---------
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* dataset and module
* test with training
* add tests
* start the fight with mypy
* kick off tests
* class var ruff
* don't download
* forgot tests data
* already downloaded
* coverage
* review
* mypy
* docs
* docs
* suggestion
* plotting
* versionadded: 2 digits
* Type hint unnecessary
---------
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* add scale-mae model and pretrained weights
* fix docs, mypy, and code coverage
* add scalemae to torch hub
* make res optional instead of required
* Remove ViT from the name
* Alphabetical order
* Doc bugs
---------
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Tutorials: add Open in Studio badge
* Keep CSS name the same
* Remove custom CSS
* Revert "Remove custom CSS"
This reverts commit 85c3159c50.
* Single badge (to prove a point)
* Revert "Single badge (to prove a point)"
This reverts commit e9d781fdff.
* Move jinja code to separate file
* spatialspliteurosat
* address the comments
* make ruff happy
* make ruff happier
* ruff-ing
* address comments
* add test
* missing comma
* add to init
* make ruff happy
* ruff-ing
* fix a silly mistake
* Update torchgeo/datasets/eurosat.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Update torchgeo/datamodules/eurosat.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* raw to resolve
* spatial mean and std
* eurosat dataset and datamodule rst
* add the datamodule to rst
* corect the typo in rst
* lots of typos before morning coffee
* add dataloader to init
* make isort happy
* swap order spatial and 100
---------
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Datasets: improve lazy import error msg for missing deps
* Add type annotation
* Use lazy imports throughout datasets
* Fix support for older scipy
* Fix support for older scipy
* CI: test optional datasets on every commit
* Update minversion and fix tests
* Double quotes preferred over single quotes
* Undo for now
* Fast-fail during dataset initialization
* Remove extraneous space
* MissingDependencyError -> DependencyNotFoundError
* Update config files
* Fix deviations
* Update requirements files
* Update CI
* Update devcontainer
* Update pre-commit
* Check Jupyter notebooks too
* Better safe than sorry
* Update docs
* Undo removal of mypy
* Test a bug
* Also format
* pre-commit: fix indentation
* Test a bug
* Fix the bug
* Run format too
* Fix typo
* mypy requires pytest
* Fix docs link
* Add eurocrops data module.
It is based on NAIPChesapeakeDataModule which splits bounding box of dataset
into 1/2 train, 1/4 val, and 1/4 test. This may not be the best way to train
an actual model.
* misc fixes
* various fixes per discussion
* update eurocrops test data
* fix
* fix version added placement
* fix failing test by forcing integrity test when checksum is requested
* Clarify SIZE setting in eurocrops test data
* fix currently remaining issues with eurocrops data module
* fix style
* more style fix
* Add documentation
---------
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* adding DOFA-Net model
* Convert git submodule to single file
* Get rid of __main__ code blocks
* Add WeightsEnum
* Add documentation
* Add CSV file
* Update link to transform implementation
* Add unit tests
* Test model forward function
* Complete test coverage
* Add type hints
* Solve most type issues
* Solve remaining type issues
* Undo sorting
* Simplifed docs
* Fix loading of real weights
* OFAViT -> DOFA
* Remove redundant helper function
* Add units for wavelengths
* wave_list -> wavelengths
* wvs -> wavelengths
* img_feat -> x
* Sorting
* inter_dim is not used
* Rename embedding layer
* Simpler name for position embedding
* wv_planes -> dynamic_embed_dim
* make weight init a hidden method
* Simpler model init
* Use permalink
* Document GEO-Bench performance
* Simpler test
* More columns
* Update correct column numbers
* Modified datasets
* Add large weights
* Update __all__
---------
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* add agrifieldnet datamodule
* fix codecov
* extra_args not needed
* Bigger default batch size
* Revert "extra_args not needed"
This reverts commit f690d8b1f8.
* Same split as everyone else
---------
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* initial commit
* add init description
* correct scanning of files in init
* added random data generation
* remove test directory
* Update metadata
* fix formatting
* add s1 data and update regex
* fix dataset and add tests
* formatting
* mypy
* add timeseries test and take images from july
* fix bug in merging files across dates
* mypy
* Bump lightly from 1.4.25 to 1.5.0 in /requirements (#1894)
* Additional Satlas pretrained models (#1884)
* Documentation, satellite-specific transform and weights for additional Satlas single-image rgb&multispectral Swin-v2 models. Tests pass.
* Address 3 of comments
* Address comments, fix readmydocs and isort, mypy still unhappy
* update
* Add bands to meta dicts
* Add comment about Satlas S2 RGB using TCI product
* linting
---------
Co-authored-by: Piper Wolters <piperw@allenai.org>
Co-authored-by: Piper Wolters <piperw@prior-cirrascale-79.reviz.ai2.in>
* Update tests/data/south_africa_crop_type/data.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Update tests/data/south_africa_crop_type/data.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Update torchgeo/datasets/south_africa_crop_type.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Update torchgeo/datasets/south_africa_crop_type.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Update torchgeo/datasets/south_africa_crop_type.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Update torchgeo/datasets/south_africa_crop_type.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* refactor gettitem and bug fixes
* typo
* data.py style
* Update torchgeo/datasets/south_africa_crop_type.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Update torchgeo/datasets/south_africa_crop_type.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* added comments for nonstandard functionality
* Update torchgeo/datasets/south_africa_crop_type.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* small change
* add verbose documentation
---------
Co-authored-by: georgehuber <“georgehuber8@gmail.com”>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piper Wolters <46272042+piperwolters@users.noreply.github.com>
Co-authored-by: Piper Wolters <piperw@allenai.org>
Co-authored-by: Piper Wolters <piperw@prior-cirrascale-79.reviz.ai2.in>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Change DEMs from mask to image (is_image=True)
* fix to revert to upstream file
* fix unused type: ignore comment
* Update torchgeo/datasets/geo.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Update documentation to explain is_image and dtype. Update asterdem to override dtype.
* fix linting errors
* Made comment for is_image more succint.
* change asterdem dtype back to float32 (same as RasterDataset)
* removed integer images from documentation
* change Digital Elevation Model to DEM
* Clarify is_image and dtype.
Revert DEMs to masks
* Finish reverting DEMs to masks
* address review comments
* Changed Aster Global DEM and EU-DEM Dataset types to "DEM"
* Reorganize some information
* Use better formatting
---------
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>