Граф коммитов

468 Коммитов

Автор SHA1 Сообщение Дата
iejMac 051d7f2685
Adding dataset from MOSAIKS paper (#363)
* Adding dataset from MOSAIKS paper

* Name change

* implementing NAIPTileIndex in USAVars

* lookup_point works

* usavars: adding extract + verify

* USAVars: add md5

* initial _load_files function

* adding plotting

* formatting

* add description

* black fix

* flake8 fix

* pydocstyle fix

* mypy fix

* add DS to docs

* black fix

* fake dataset

* add transforms arg

* initial tests

* fix black flake8 isort

* fix black flake8

* fix black

* fix mypy

* test fixes

* testing something

* it finds zip but not csv

* fake csv files didn't get added

* pandas docs fix

* forgot to take out here

* need to add in functions

* round plot labels

* Small edits

* remove Unnamed column

* zipfile change

* i think this solves codecov?

* there needs to be a test

* codecov

* bring back UAR!

* remove intermediate directory

* fix flake8

* No more iteration in load_files

* dont' use Any

* check if all csv files exist

* Add docstring to init

* use index col = ID

* labels in as list

* adjust to only 3 labels + adjust tests

* citation

* remove testing file

* no need to rename zipfile

* adding data.py to test data + adjusting tests

* formatting fixes

* style fix

* docstring

* Docstring

* Fixing docstring

* docstring for labels

* Adding all csv files to data + checking for all 7 labels instead of just 3

* docstrings

* docstring

* ensure labels are valid

* pydocstyle fix

* cast to list

* remove typos

* Requested changes

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2022-02-27 20:11:21 +00:00
Nils Lehmann 7bd68e4d12
Add plot method and data.py to Esri2020 dataset (#405)
* add plot method and data.py

* typo missed period

* forgot data.py

* Remove abc, add versionchanged

* Update esri2020.py

* fixed test and requested changes

* Add uncompressed data file

* add test coverage

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2022-02-27 20:01:23 +00:00
Nils Lehmann b5171d5c11
plt.close() (#437) 2022-02-27 13:33:39 -06:00
Nils Lehmann 5f8f952df4
Add EUDEM dataset (#426)
* dataset file no test

* add test and data.py

* Update eudem.py

* requested changes

* Update torchgeo/datasets/eudem.py

* Apply suggestions from code review

* rST fix

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2022-02-26 23:01:24 +00:00
Nils Lehmann 3cc9ef9a77
Add own plot method to CMSMangroveCanopy (#427)
* add own plot method

* Update torchgeo/datasets/cms_mangrove_canopy.py

* Update cms_mangrove_canopy.py

* whitespace

* Removing versionchanged

* Any instead of Tensor

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2022-02-26 16:51:59 -06:00
Nils Lehmann 7e724dc956
Adding the GlobBiomass dataset (#395)
* globBiomass Dataset

* add tests and testdata

* add description and error messages

* doc correction

* added plot method

* orientation plot figure

* fix documentation

* add compression

* camel

* gsv fake data and filename glob

* 2 channel tensor and requested changes
2022-02-26 12:43:46 -06:00
Kaustav Mukherjee 7be61544b0
3band indices (#414)
* added triband normalized difference index to support indices e.g. Green-Blue NDVI

added triband normalized difference index base class to support indices e.g. Green-Blue NDVI

* Formatted

* formatted the comments

* formatted

* Update indices.py

* Update indices.py

* formatted

* formatted

* formatted

* formatted

* formatted

* frmtted

* formatted the init

* added test cases

* removed probelematic code

* formatted

* formatted

* formatted
2022-02-25 16:43:04 -08:00
Nils Lehmann 4bf48cf3ab
Add own data to CDL dataset. (#429)
* add own data

* data.py with cmap

* remove .img test data format
2022-02-25 09:09:00 -08:00
Nils Lehmann d48e10ec15
Add AsterGDEM dataset (#404)
* add astergdem dataset

* add astergdem dataset

* add plot method

* typo

* fix docs

* requested changes

* Update docs/api/datasets.rst

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/datasets/astergdem.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* split regex

* split regex

* split regex

* regex

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2022-02-24 15:49:40 -06:00
Caleb Robinson 0164104009
Adding test for cmap in RasterDataset.plot (#430) 2022-02-24 09:57:09 -06:00
Ritwik Gupta cc1a9fb770
Add pixel sampling mode (#294)
* Add pixel sampling mode

* Fix maxy indexing error

Co-authored-by: Ashwin Nair <ash1995@gmail.com>

* Add sample_mode docstrings, default to PIXELS

* Replace sample_mode with units

* Update to use enum

* Fix mypy, tuple, and flake8 issues

* Fix isort and pydocstyle problems

* Update sampler docs to discuss unit sampling mode

* Various fixes

* Add units arg to GridGeoSampler

* Update benchmark script

* Add tests

* Document enum values

* mypy fixes

Co-authored-by: Ashwin Nair <ash1995@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2022-02-23 22:57:29 -06:00
Nils Lehmann 6bc3779907
Add plot method and data.py to Sentinel Dataset (#416)
* add plot method and data.py

* Adding normalization for plot

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2022-02-21 07:11:37 -08:00
Nils Lehmann 5e54c43b63
Add plot method to base chesapeake (#417)
* plot method to base chesapeake

* fix typo

* Add plotting to Chesapeake datasets

* isort, yousort, weallsort

* putting back the globs

* putting back the geo.py change

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2022-02-20 16:55:06 -08:00
Nils Lehmann 9cf36fac12
Add CMS Global Mangrove Canopy dataset (#391)
* CMS dataset

* dynamically set filename

* add warning in documentation

* requested changes and data.py

* single zip file and camel case

* md5 check added

* correct error messages

* compression smaller test file

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2022-02-20 12:07:20 -08:00
Nils Lehmann 89277dc325
Add band selection to So2Sat Dataset and adopt plot method (#394)
* add band selection and adopt plot method

* np array typing and raise error doc
2022-02-20 11:47:52 -08:00
Nils Lehmann b36e053ecf
Add band selection to EuroSat and adapt plot method (#397)
* add band selection and adapt plot method to rgb

* keep normalization in plotting method
2022-02-20 11:45:10 -08:00
tritolol daecc90709
Fix forced int32 type conversion in RasterDataset (#384)
* fix forced int32 type conversion

* add fix for numpy dtypes which are not supported by tensors

* delete whitespace

* Adding custom data to test the dtype transform

* Fixed formatting

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2022-02-17 06:25:33 -08:00
isaac 2c6e7eea60
FCCD Models refactor (#345)
* remove FCEF model, refactor FCSiamConc and FCSiamDiff to inherit from smp.Unet

* style fixes update tests

* mypy and docstring fixes

* more mypy fixes and add tests

* remove test args

* fix tests

* add smp to intersphinx mapping

* update model DOI

* add the right docs this time

* Removing type ignores

* Testing sphinx fix

* Added parts of SMP to nitpicky ignore

* Fixing docs

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2022-02-15 22:54:52 +00:00
Adam J. Stewart bef8f52af1
LandCover.ai: support already-downloaded dataset (#383)
* LandCover.ai: support already-downloaded dataset

* Typo fix
2022-02-15 22:42:41 +00:00
Data Philosopher 16774fb6f4
Add BNDVI/NDRE spectral indices (#386) 2022-02-14 15:53:03 -06:00
Wei Ji 019dc2495d
Fix regex to work with Sentinel-2 Band 8A (#393)
* Fix regex to work with Sentinel-2 Band8A

Regex was only finding numerical bands (e.g. Band 01, 02, ..., 10, 12), but not Band 8A.

* Update test_sentinel to include Band 8A

* Simplify regex

Co-Authored-By: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2022-02-12 16:00:30 -06:00
Adam J. Stewart 9e0e30a155
BoundingBox: add area/volume attributes (#375)
* BoundingBox: add volume attribute

* Style fixes

* BoundingBox: add area attribute
2022-02-10 16:53:17 -06:00
Nils Lehmann fa6e4e11b5
Adding Esri 2020 Land Cover/Land Use Dataset (#390)
* Adding Esri 2020 dataset

* long url string

* requested changes

* Add period at end of sentence

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2022-02-09 14:34:22 -06:00
Adam J. Stewart cb20e1abfd
Samplers: avoid bounding boxes smaller than patch size (#376) 2022-01-31 21:23:10 -06:00
Data Philosopher 80ee076f40
Added GNDVI and SWI Indices (#371)
* Update indices.py

Added MNDWI to support modification of normalised difference water index (NDWI) to enhance open water features in remotely sensed imagery.

* Update indices.py

* Update indices.py

* Update indices.py

Added a new Index Soil Water Index

* Update indices.py

Style error fixed

* Update indices.py

* SWI addition

* Update indices.py

* Update indices.py

* Update indices.py

* Update indices.py

Changed the comment to fit in the code accordingly

* Update indices.py

modified

* Update indices.py

corrected the citation

* Update indices.py

* Ubuntu CUDA 11.3 docker for torchgeo

* Update Dockerfile_ubuntu_1804_cuda_11_3_cudnn_8_torchgeo

* Delete Dockerfile_ubuntu_1804_cuda_11_3_cudnn_8_torchgeo

* Added Dockerfile

Added Dockerfile

* deleted docker due to wrong issue number

* Added GNDVI Index

Added GNDVI Index

* corrected docstring

* updated refernce index to doi

* Added Triband Normalized Indexes

* Update indices.py

Saved

* Updated GNDVI

* Delete transforms.ipynb

deleting

* Added the notebook changes

* Delete transforms.ipynb

* Added the notebook changes

* Added the spaces

* Update indices.py

* formatting corrected

* Running black

* Reset transforms

* Clean up docstrings

* Adding tests and adding to list of transforms exported by the module

* Consistency

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2022-02-01 01:24:11 +00:00
Caleb Robinson d79cd18952
Update tests for bboxes in kornia 0.6.3 (#381)
* Update tests for newest version of kornia

* Comments explaining the bounding box format
2022-01-31 23:56:07 +00:00
Adam J. Stewart 60009b35b6
Fix len for empty GeoDataset (#374) 2022-01-29 12:26:51 -06:00
Adam J. Stewart 27f270b8bb
LandCover.ai: fix test data zip file (#373) 2022-01-28 14:58:54 -06:00
Caleb Robinson d4c8a4bd7b
Add the EnviroAtlas dataset (#364)
* Add dataset

* Add dataset to docs

* Tests for enviroatlas

* Test coverage

* Added numpy type

* Added plotting

* Code review changes

* Propagating code review comments to Chesapeake
2022-01-27 19:16:45 -08:00
Adam J. Stewart f32bc0c858
extract_archive: support deflate64-compressed zip files (#282) 2022-01-14 23:14:51 -06:00
Ashwin Nair 4bd4f2acdc
Run linters on tests/data (#356)
* Run linters on tests/data

* Configuration: use .gitignore for tool skip

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2022-01-13 19:16:10 +00:00
Ashwin Nair 08a365f55b
Add InriaAerialImageLabeling dataset (#355)
* Add InriaBuildings dataset

* Add tests and test data

* Nit

* Add type-hints

* Image always 3 channel

* Increase coverage

* Update docstring

* Add more tests

* Remove np.typing

* Fix test lbl range

* Fixes

* Fix title underline

* Forgot to add this file

* Fixes2

* Fixes3

* Move download sentence

* toto
2022-01-13 12:39:22 -06:00
isaac 45f370389f
Add DFC2022 dataset (#354)
* add DFC2022 dataset

* plot fix

* mypy fixes

* add tests and tests data

* maximum coverage

* remove local dir

* update per suggestions

* update monkeypatching

* update docstring

* fix indentation in docstring
2022-01-12 22:16:06 +00:00
Adam J. Stewart 5136d819c0
Reorganize configuration files (#352)
* Reorganize configuration files

* Undo changes to tests/conf files
2022-01-08 10:11:49 -06:00
Adam J. Stewart 7f27edef53
0.2.0 release (#348)
* 0.2.0 release

* Fix notebooks

* Fix minimal dependency tests

* Fix integration tests

* Fix integration tests

* Try to avoid running GitHub Actions twice on release PRs

* Revert "Try to avoid running GitHub Actions twice on release PRs"

This reverts commit a1ac7ab4cf.

* GeoDatasets use intersection, not addition

* Adding stack_samples to benchmarks

* Fix zero division error in SEN12MS tests

* Replaces test models with dummy models (#344)

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* lc values must be < num_classes

* updated indices tutorial with latest indices

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
Co-authored-by: isaaccorley <22203655+isaaccorley@users.noreply.github.com>
2022-01-01 20:07:43 -06:00
Adam J. Stewart 42b9a6dbd2
Remove dataset-specific trainers (#286)
* Remove dataset-specific trainers

* Collation functions will be new in 0.2.0

* Clarify arg docstring

* Style fixes

* Remove files forgotten in rebase

* Fix bug in unbind_samples, add tests

* Fix bugs in datamodule augmentations

* Increase coverage for datamodules

* Fix bugs in logger plotting, properly test

* Fix tests

* Increase coverage of trainers

* Use datamodule plot instead of dataset plot

* Skip datamodules without tests

* Plot predictions

* Fix ClassificationTask tests

* Fix SemanticSegmentationTask tests

* EAFP -> LBYL

* Ensure that tensors are on the CPU before plotting
2022-01-01 14:14:19 -06:00
Ritwik Gupta 3514724dbd
Refactor all indices to one module. (#285)
* Add compute index helper function + refactor

* Generalize all indices to one function

* Refactor indices to one module

* Fix init imports

* Add docstrings

* Fix transform test

* update to inherit from parent index class

* add nbr index

* forgot self in method

* mypy and dim fixes

* update expected tensor in test

* Update indices.py

* Black

* Update indices.py

* Black again

Co-authored-by: isaaccorley <22203655+isaaccorley@users.noreply.github.com>
Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2022-01-01 20:07:47 +00:00
isaac 8fa1b4c65a
ZueriCrop test data update (#343)
* updated zuericrop test data and adds data.py script

* updates per suggestions

* Guard file removal with file existence check

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2022-01-01 17:09:22 +00:00
Adam J. Stewart de2354960d
Add type hints for numpy (#342)
* Add type hints for numpy

* np.int -> int

* Fix np.int_ usage

* int -> np.int_

* Sequence[int]

* Add link to numpy docs

* Fix type hint in rgb_to_mask

* Update potsdam and vaihingen masks to uint8

* Fixing draw_semantic_segmentation_masks

* Fixing draw_semantic_segmentation_masks

* Unrelated doc spacing fix

* Formatting

* Revert update to kenya crop type dataset

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2021-12-31 18:07:12 -08:00
Nils Lehmann 7d90045b9b
Add plotting method and band selection to Sen12ms, replacing #320 (#338)
* add plot method to sen12

* tuple
2021-12-31 13:54:01 -06:00
Nils Lehmann 2375a512be
Add plot method to PatternNet dataset (#314)
* Adding plot method to PatternNet dataset

* classes and doc fix

* remove classes and adjust directory

* fix test

* handling directory and documentation

* md5

* md5

* semicolon
2021-12-31 11:00:15 -06:00
Nils Lehmann c90419b38f
Add plot method and band selection to Zueri crop dataset (#334)
* work on adding plotting method

* add band selection and plot method

* plot prediction

* plot mask instead of boxes

* sequence and alternative plot method

* sequence assert

* requested changes

* add comma

* sequence changes
2021-12-31 10:59:09 -06:00
Adam J. Stewart 744078fcff
Refactor datamodule/model testing (#329)
* Refactor RegressionTask testing

* Programmatically determine max value

* Refactor ClassificationTask testing

* Silence warnings

* Refactor SegmentationTask testing

* Fix training mappings

* Fix GeoDataset trainers

* Fix ETCI trainer fake data

* Update OSCD training data

* Get LandCoverAI tests to pass

* Fix OSCD checksum handling

* Fix NAIP-Chesapeake tests

* Fix OSCD tests

* Keep BoundingBox icy

* Fix other datamodules

* Fix chesapeake testing

* Refactor BYOLTask tests

* Style fixes

* Silence pytorch-lightning warnings

* Get coverage for Chesapeake CVPR prior

* Fix trainer tests
2021-12-30 13:54:47 -06:00
Nils Lehmann 61e10f7b5c
Add plot method to Levir, and change directory path (#335)
* add plotting method

* implement test

* axis off

* prediction flag

* requested changes

* indexing fix
2021-12-30 12:05:42 -06:00
Nils Lehmann a9f004e2d3
Add plotting method for CV4A Kenya Crop Type Dataset (#312)
* Add plotting method for CV4A Kenya Crop Type Dataset

* remove print statements, still fix test_plot

* fix rgb plot test

* fix rgb plot test

* requested changes
2021-12-29 11:01:16 -06:00
Caleb Robinson 7ad31942d5
Add plot method to ADVANCE, BeninSmallHolderCashews, and BigEarthNet datasets (#264)
* Adding plot to ADVANCE dataset

* Adding plot to BeninSmallHolderCashews

* Adding plot to BigEarthNet

* Doctstring adjustment for BigEarthNet plot

* Cleaning up ugly test

* Cleaning up bigearthnet classes

* Added time step plot to benin_cashews

* Formatting

* Update benin cashew tests

* Add S1 plotting and type to np.ndarray

* Trying numpy with quotes
2021-12-28 15:01:57 -06:00
estherrolf 0d4811b752
functionality for learning on the prior with QR loss and ChesapeakeCVPR data (#202)
* adding QR loss functions for learning on the prior

* chesapake learn on prior trainer with self-contained code for visualization

* adding prior dataset to the chesapeake datasets; doesn't handle downloading or anything like that yet

* updating init files to include chesapeake CVPR prior

* adding FCNModified for learning on the prior

* changing input to samplers to pass dataset instead of dataset.index

* fixing style issues

* Removing FCN_modified

* Fixing super call and mypy in FCN model

* Added learning on the prior extension

* Update tests

* Formatting

* Adding QR loss

* Added losses to docs

* Removing trainer, moving datamodule

* Combining chesapeake and chesapeake prior datamodules

* Formatting

* Test coverage

* Formatting

* Adding losses

* Re-moving the datamodules around

* Make loss function a torch Module

* Version added

* Fixed some stuff that got messed up in the rebase

* Formatting

* How'd this get there?

* Change qr losses to expect probabilities instead of log-probabilities

* Clean up test

* Rename qr loss file

* Renamed test file

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2021-12-28 14:56:14 -06:00
Nils Lehmann 45df0f8b98
Add plotting method for COWC dataset (#300)
* plotting method cowc dataset

* boolean label for detection

* restructure plotting method

* typo

* label title not as variable

* single plot method in super class

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2021-12-28 11:25:50 -06:00
Adam J. Stewart cbebc1e0db
Move DataModules to torchgeo.datamodules (#321)
* Move DataModules to torchgeo.datamodules

* Clean up local imports
2021-12-23 20:10:50 -06:00
Ritwik Gupta a3f559376c
Add custom RasterDataset notebook (#283)
* Add custom RasterDataset notebook

* Update docs index.rst

* Update copyright, fix URL typo, and add verbose description

* Add xview3 sample data

* Update notebook

* Show simple example first, complicated example second

* Remove the second half of the notebook, can expand later
2021-12-21 15:29:15 -08:00
Ashwin Nair fe590b1d78
Update SpaceNet plot fns (#311) 2021-12-20 22:56:57 -06:00
Maciej Kilian 95a4d89d57
OSCD: adding configuration file (#262)
* OSCD: adding configuration file

* add OSCDDataModule

* some changes

* Works, it's training

* some edits

* not required

* Get rid of swap

* Padding in val and test

* don't ignore zeros

* 0.56 IoU

* 0.59 Iou

* 0.6 IoU

* make this the same

* oscd change

* fix tests

* black fix

* change defaults

* Null weights

* null

* use Kornia PadTo

* remove name from config + fix val dataloader

* padto class attribute

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2021-12-20 16:53:20 -06:00
Adam J. Stewart 52a94a6ddc So2Sat: prevent test warnings (#307) 2021-12-19 16:27:46 -06:00
Adam J. Stewart 46cf24453a
Transform tests: min Kornia version, filter warnings (#306) 2021-12-19 15:04:23 -06:00
Adam J. Stewart aaee30437d
Fix GeoDataset pickling (#304)
* Fix GeoDataset pickling

* mypy fixes
2021-12-19 09:23:18 -06:00
Nils Lehmann 9a33a99553
plotting method Cyclone dataset (#298)
* plotting method Cyclone dataset

* adding label and prediction
2021-12-17 17:18:29 -08:00
Adam J. Stewart be36c1eb22
Rework list of required dependencies (#287)
* Rework list of required dependencies

* Update open3d import error msg

* Style fixes

* Remove extra empty line

* Increase test coverage

* Fix idtrees tests
2021-12-17 16:28:57 -08:00
Nils Lehmann 29dc789828
plotting method for GID15 dataset (#288)
* plotting method for GID15 dataset

* version added

* plot predictions

* prediction in sample
2021-12-17 01:13:30 -08:00
Ritwik Gupta ea03fe42a4
Add normalized burn ratio and tests (#284) 2021-12-17 00:21:43 -08:00
Adam J. Stewart 3bffe4972c
Chesapeake: support already downloaded zip files (#281)
* Chesapeake: support already downloaded zip files

* Remove comments, save for a later PR

* Style fix
2021-12-16 16:49:11 -06:00
isaac 14c19e35c2
Add FAIR1M Dataset (#232) 2021-12-10 18:09:08 -06:00
isaac 1f249b81c6
NASA Marine Debris dataset (#269) 2021-12-10 17:57:38 -06:00
Caleb Robinson db600b4f7c
Fixing network calls in unit tests (#265)
* Fixing network call in test of pretrained resnet

* Enable loading a pretrained model from a local path

* Fix filename

* monkeypatch the load_state_dict_from_url method instead of going around it

* Make default configs use random weights instead of imagenet pre-trained weights

* Removing internet access requirement from tests

* Deleted So2Sat trainer
2021-12-09 19:38:30 -06:00
Nils Lehmann 6785683da1
Add LoveDA dataset (#270)
* initial commit, adding LoveDA dataset

* recommended changes by ashnair1

* corrections from pydocstyle linter

* List[str]

* plotting method added

* linting test changes

* passing test for plotting

* linting adjustments

* smaller fake data of 2x2 and mypy linter changes

* plot only single image and mypy changes

* plot method without expecting batch dimension

* style changes and adding doc

* added lightning data module

* sphinx changes

* doc string changes

* data module in init and fake data for module test
2021-12-09 14:47:11 -06:00
isaac 0434f3c1ce
Add IDTReeS dataset (#201)
* add IDTReeS dataset

* dataset loads data now

* add optional laspy and pandas dependencies

* fixed docs failing

* format

* refactor verify and resample chm/hsi to 200x200

* add open3d optional dep

* overhaul

* temporarily remove open3d install bc their pypi is broken

* mypy fixes

* fixes per suggestions

* general cleanup

* test passing

* add min version for laspy and pandas

* add open3d dependency

* add open3d to mypy tests

* add hard install for python 3.9 open3d to actions

* attempt #2

* I think I got it now

* updated tests.yaml

* make open3d dep require python<3.9

* open3d has issues with macos python 3.6

* same for 3.7

* skip open3d plot test for macos

* formatting

* skip open3d plot test for windows

* update per suggestions

* update test data readme for las files

* updated per suggestions

* more changes per suggestions

* last change per suggestion

* Grammar fix in pandas dep requirement comment

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-12-05 22:38:50 +00:00
isaac 5276d7907f
update for kornia v0.6.2 release bbox fix in K.AugmentationSequential (#268) 2021-12-05 15:08:50 -06:00
Caleb Robinson 5d407b76b5
Overhaul BoundingBox and ZipDataset classes (#144)
* Adding a UnionDataset

* Adding contains method to BoundingBox

* Finishing UnionDataset

* Add __contains__ method

* Overhaul BoundingBox, add set arithmetic

* mypy fixes

* pydocstyle fixes

* Ignore erroneous pydocstyle warnings

* rtree only supports tuples, not BoundingBoxes

* mypy fixes

* Use custom collate function to handle BoundingBoxes

* Add back support for Python 3.6

* Add tests for all new BoundingBox features

* Rename ZipDataset to IntersectionDataset

* Merge indices of IntersectionDataset, auto-convert CRS/res

* Get tests to pass

* Fix more tests

* Test more of RasterDataset/VectorDataset directly

* Increase UnionDataset test coverage

* IntersectionDataset stacks tensors, UnionDataset merges tensors

* Support collating dicts with differing keys, add tests

* Style fixes

* Samplers: compute intersection between index and ROI

* Update README with example usage

* GeoDataset addition is deprecated

* Add note about CRS/res

* More documentation for Intersection/UnionDatasets

* Use collate function in tutorial

* Don't use multiple workers

* Fix typo

* Drop support for adding GeoDatasets

* Remove unused import

* Add comment explaining coverage config settings

* Collation function needed for benchmark script

* Add more explanation to README

* Correct Landsat 8 bands

* Print warning when changing CRS/res

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-12-03 16:40:50 -06:00
Maciej Kilian 6f23fa42c5
OSCDDataModule: add random crop augmentation (#257)
* OSCDDataModule: add random crop augmentation

* typing: use sequence instead of tuple

* use RandomCrop

* Use kornia instead

* add description of crop_size

* Only RandomCrop train and val set, not test set

* black fix

* working random_crops

* Resizing dummy test data to 3x3 so we can test RandomCrop Augmentations

* assert crops are proper size

* not working yet but some progress

* issue with amount of slices

* forgot to set val and test batch_size to 1

* some style fixes

* setting the dataset.transforms attribute doesn't work unless you do it in __init__ for now val_dataset must have random crop

* nevermind we don't need this

* style fixes + do we need mask to be torch.long?

* einops

* unsure why this doesn't work

* dataset.transforms

* mypy fix

* hacky flake8 fix

* non-hacky flake8 fix

* mypy fix

* adjust val test size

* passing tests

* mypy fix

* adding n_random_crops

* adjust param in testing

* working collate_fn but breaks mypy

* flattening (2, 13) into 26

* fix mypy

* style fixes

* add testing for new shapes

* Adjusting DataModule docstring

* remove clamp since we are standardizing

* name change to train_batch_size

* splitting crop-size into patch_size and num_patches_per_tile
2021-12-01 23:34:33 -08:00
Ashwin Nair 28e5f2406e
Add SpaceNet5 (#263)
* Add SpaceNet5

* Add speed_mask option and test data

* Fix docs

* Combine fixtures

* Use python copy

* Remove list

* Predictions -> Labels

* Better error message
2021-11-29 11:39:54 -08:00
Ashwin Nair 3c228ba268
Add plot function for SpaceNet datasets (#252)
* Add plot function for SpaceNet datasets

* Add version string

* Set interpolation='none' while displaying mask

* Switch to percentile normalization

* Add axis param to percentile_normalization

* Tuple[int, int] -> Sequence[int]

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update docstring

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Forgot to import Sequence

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-11-22 09:13:25 -08:00
Maciej Kilian 0171c72519
Implementing OSCDDataModule (#255)
* Implementing OSCDDataModule

* some progress + style fixes

* Adding temporary min/max values for B10 band which isn't in BigEarthNet for some reason

* adding validation split

* fixing pydocstyle fails

* fixing style issues

* OSCDDataModule testing + added to torchgeo.datasets.__init__

* more concise + robust to small val_pct

* nevermind, mypy doesn't like that because of types

* adding to docs

* adding actual means and stds calculated on entire dataset

* use clamp instead of clip

* fix

* initialize norm after last band_mean edit
2021-11-22 09:11:07 -08:00
Maciej Kilian bfe3125c25
OSCD tests: fixing test_len (#254)
* OSCD tests: fixing test_len

* I forgot to update the .zip files, should work now
2021-11-20 08:38:47 -08:00
Caleb Robinson 248cd4a323
Add plot functions to datasets (#251)
* Adding plot function for EuroSAT

* Added LandCover.ai plot

* Cleaning up

* Added method for percentile normalization

* Adding RESISC45 plot

* Adding versionadded tags and fixing docs

* So2Sat should return tensor labels

* Added So2Sat plot

* Added UCMerced plot

* Changed percentile normalization to calculate values overall and not by band

* Added SeCo plot

* Fixed So2Sat doc

* Adding version to xview2

* Testing percentile_normalization

* Style in test_utils

* version de-added
2021-11-19 16:28:09 -06:00
Maciej Kilian 0b8a8461bc
Adding OSCD dataset (#233)
* OSCD: initial template

* updating download pattern

* package: including OSCD in torchgeo.datasets

* download: adapting download method to OSCD dataset + adding simple test for debugging

* _load_files method: temporary implementation

* OCSD: minimum working example, needs plenty improvement

* adding OSCD to docs

* Moving test to appropriate location

* OSCD: remove sort_bands and use utils.sort_sentinel2_bands

* Using rasterio instead of tifffile

* remove useless import

* style changes

* fix: style

* Developing tests for OSCD dataset

* Updating dataset description

* change name

* style fixes

* fixing mypy errors

* style fixes

* cast to string to fix typing errors

* style change

* isort fix

* remove TODO

* adding dataset for testing

* change len

* check if sum is concatdataset

* isort fix

* fixing some issues + correct md5 in dataset

* closing rasterio file handles

* removing some TODO's

* transitioning to fake data

* mypy fix attempt

* set fake data md5

* flake8 fix

* starting plot method

* updating plot method

* no predictions for now

* fixing style errors

* add testing for plot

* making some changes to fake testing data

* full coverage

* Use RGB channels in the plot function

* adding shape tests in test_getitem

* remove features and add to description

* fixing some things

* transitioning to authors dataset link

* No need to change file names + adapt test dataset

* adapting tests to new data format

* Update docs/api/datasets.rst

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* closing plot at end of terst

* add versionadded

* style fixes + indentation fixes

* style fixes

* forgot the .zip

* fix zipfile name

* temporary fix for flake8

* Add link to docs

* forgot to adjust this

* changing flake8 solve

* slimming down the test dataset

* removing imgs_x files which aren't needed for current testing but might be in the future

* Revert "removing imgs_x files which aren't needed for current testing but might be in the future"

This reverts commit cfbf26c1d3.

* nevermind, this was the issue

* trying to remove these once again

* adding band choosing functionality

* removing double code

* removing more double code

* flake8 fix

* adding one more training sample to dummy dataset and testing split

* typing numpy array

* back to this

* Fixing tests and mypy

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-11-19 12:21:51 -08:00
Caleb Robinson 68112c749c Removing staticmethod from ETCI2021 plot 2021-11-19 04:55:02 +00:00
Caleb Robinson cf9cc98da6
Adding seed to RCF model (#250) 2021-11-18 18:32:56 -06:00
Adam J. Stewart 7fea911fa6
Fix resisc45 testing 2021-11-18 16:01:43 -06:00
Adam J. Stewart b190c40e52
Close figures after opening to silence warnings 2021-11-18 15:56:50 -06:00
isaac dfad08ef3a
Add Potsdam Segmentation (#247)
* add potsdam dataset and tests

* add dummy potsdam data

* update potsdam docstring

* mypy fix

* style fixes

* Update datasets.rst

* update per suggestions

* updated docs

* refactor _load_target to use pillow

* format

* Update tests/datasets/test_potsdam.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update tests/datasets/test_potsdam.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/datasets/potsdam.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/datasets/potsdam.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/datasets/potsdam.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-11-16 09:13:41 -08:00
isaac c818827dfd
Add Vaihingen Segmentation (#248)
* tmp

* add vaihingen dataset

* add tests and dummy data

* style fixes

* remove tmp notebook

* update per suggestions

* updated docs and docstrings

* Update tests/datasets/test_vaihingen.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update tests/datasets/test_vaihingen.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/datasets/vaihingen.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/datasets/vaihingen.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-11-16 02:02:51 -06:00
isaac 922ec05054
Add xView2 Dataset (#236) 2021-11-15 08:45:57 -06:00
Caleb Robinson bb2771fcc8
Add EuroSAT datamodule (#246) 2021-11-14 22:19:41 -06:00
Caleb Robinson fca579a112
Adding ETCI2021 datamodule and trainer (#234)
* Adding ETCI2021 datamodule and trainer

* Fixing confs

* Update torchgeo/datasets/etci2021.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/etci2021.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update conf.py

* Reverting trainer init

* plot method

* Update ETCI2021 test data

* Test trainer

* Fix train.py

* Fix test

* Adding matplotlib intersphinx

* Remove ignore

* Revert "Update ETCI2021 test data"

This reverts commit 502a3785e4.

* Remove stuff

* Reset

* Add plot tests

* Unzipping test data

* Test datamodule

* Add datamodule to docs

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-11-14 14:31:42 -06:00
Ashwin Nair 5a071cef9f
Add SpaceNet 7 (#241) 2021-11-13 12:39:40 -06:00
Ashwin Nair 53f7c1d839
Run black --skip-magic-trailing-comma (#242) 2021-11-13 18:12:25 +00:00
Adam J. Stewart 740d4f87a3
0.1.0 release (#226)
* 0.1.0 release

* Train deps needed for release testing

* Update development status

* setup.py should not be run directly

* Test more trainers

* Fix local docs build

* Update installation instructions

* Specify test data dir in config

* Fix tutorial docs

* Trainers should default to num_workers=0, download=False

* Correct location for root_dir

* Try different GDAL name

* Try again

* Various fixes to release tests

* Update pip installs in tutorials

* Fix some bugs

* Config file not being picked up

* Get back to 100% test coverage

* Added correct weight string to UCMerced

* yolo fix

* yolo fix pt 2

* yolo fix 2 pt. 1

* Simplify tests a bit

* Make the trainer notebook look stupid

* UCMerced should download by default in the trainers

* Revert

* Fix logo/author, include LICENSE in upload

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2021-11-07 22:05:58 -06:00
Caleb Robinson e5bbc738a3
Adding RESISC45 trainer with augmentations (#225)
* Removing some keys from the defaults that were removed in Lightning 1.5

* Adding RESISC45

* Experimenting with different LR decay

* Formatting

* Updating RESISC45 test data to be the same size as the original data

* RESISC45 trainer and tests

* Fix import, add deprecation

* mypy fixes

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-11-07 05:17:57 +00:00
Caleb Robinson b87d2707ae
Adding the SeCo patch datasets (#223)
* Adding the SeCo patch datasets

* Adding tests and incorporating suggestions

* Added benchmark example code link

* Update to new way of downloading

* Formatting

* Test coverage

* Rename dataset

* Add SeCo dataset to docs
2021-11-06 23:58:36 -05:00
Adam J. Stewart 967b4b171f
Trainers: split tasks into separate files, add SemanticSegmentationTask (#224)
* Trainers: split tasks into separate files

* Add SemanticSegmentationTask

* Fix doc tests

* Keep dataset-specific tasks in separate files

* Remove duplicate So2Sat trainer
2021-11-06 23:57:40 -05:00
isaac 4257aec131
BigEarthNet Splits (#221)
* adds split files, new classes, and refactors to speed up loading

* update bigearthnetdatamodule and tests

* update configs

* merge

* force add split files

* fix docstring

* fix docstrings x2

* fix docstrings x3

* Reduce total testing time

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-11-05 16:58:25 +00:00
isaac 187d910afd
Refactor Classification Tasks (#222) 2021-11-05 00:04:11 -05:00
Adam J. Stewart 4f6e2096c8
Move DataModules from torchgeo.trainers to torchgeo.datasets (#220) 2021-11-04 17:15:29 -05:00
Adam J. Stewart ea55703bce
Add uncompressed BigEarthNet test data 2021-11-04 20:48:34 +00:00
Adam J. Stewart aa4cec8077
Add COWC trainer (#217) 2021-11-04 08:12:29 -05:00
Caleb Robinson 60674cc200
Adding timm models to the classification task and refactoring (#210)
* Adding support for VGG models in the classification task
Refactoring the logic for replacing the first conv layer in a network

* Fix formatting

* Testing the stuff

* mypy with torch is such a waste of time

* Update torchgeo/trainers/utils.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/utils.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Adding timm dependency

* Incorporate timm into ClassificationTask

* Fix tests?

* Formatting

* Allow for overriding stride and padding in `reinit_initial_conv_layer`

* Putting back some stuff I accidentally overwrote in the rebase

* Bug

* Format

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-11-03 15:34:33 -07:00
Caleb Robinson de48bd54ad
Adding splits to RESISC45 and EuroSat (#218) 2021-11-02 22:26:39 -05:00
Adam J. Stewart 5a7c80fb0f
TropicalCyclone dataset: use label for sample key 2021-11-02 16:10:50 +00:00
isaac 3cc63def02
BigEarthNet Trainers (#211)
* add additional bigearthnet test data for train/val/test split

* update bigearthnet dataset length test

* add MultiLabelClassificationTask

* add BigEarthNet trainer and datamodule

* add bigearthnet and multilabelclassificationtask tests

* mypy and format

* add estimated band min/max values for normalization

* softmax outputs to correctly compute metrics

* update min/max stats for 100k samples

* organize imports in torchgeo.trainers.__init__.py

* clean up fixtures in test_tasks.py

* added bigearthnet to train.py

* format

* move fixtures into class methods

* consolidate bigearthnet fixtures

* refactor tasks tests

* add scope=class

* style/mypy fixes

* mypy fixes
2021-11-02 10:45:38 -05:00
Adam J. Stewart b8f5a7ce64
Add pre-trained models for ResNet (#209)
* Add pre-trained models for ResNet

* Style fixes

* Add unit tests

* Mypy fix

* Add bands parameter
2021-11-01 13:03:01 -07:00
Adam J. Stewart 3446ea5f47
Refactoring: RegressionTask trainer (#215)
* Refactoring: RegressionTask trainer

* Fix import sorting

* Update trainer tutorial

* Use torchmetrics for metric logging
2021-11-01 12:53:09 -05:00
Caleb Robinson 69598528e6
Add train/val/test splits to UCMerced (#216)
* Added splits to the UCMerced dataset

* adding test files

* Removed random splits from UCMerced trainer
2021-11-01 10:09:36 -05:00
Adam J. Stewart 481e68e8ef
TropicalCyclone dataset: use target for sample key (#213) 2021-10-30 16:35:52 -05:00
Caleb Robinson 20ab8676f3 Fixing the tests now that we have the good broken data 2021-10-28 13:15:22 -07:00
Caleb Robinson 8d5db1556b Adding broken data to the tests 2021-10-28 13:15:22 -07:00
Caleb Robinson 8ac1817866 Adding UC Merced trainer 2021-10-28 13:15:22 -07:00
isaac f15d8be099
Trainers Refactor: ClassificationTask (#207) 2021-10-28 09:32:48 -05:00
isaac 786ccc7bea
BigEarthNet Test Data Update (#206)
* add geospatial metadata to bigearthnet dummy data

* update bigearthnet data x2
2021-10-27 20:34:40 -05:00
Adam J. Stewart 0eadac4e2c
black: skip magic trailing comma 2021-10-26 16:26:58 -05:00
Adam J. Stewart 10ff8aa99d
Increase coverage of trainers (#109)
* Increase coverage of trainers

* Actually make the tests work

* Updated Cyclone trainer

* Style fix in cyclone tests

* Fixing landcoverai trainer

* Moving mock log to utils

* Fixing the RESISC45 trainer and related

* Skip RESISC45 trainer tests if Windows

* Removing some stupid docstrings from the RESISC45 trainer

* Adding So2Sat trainer tests

* isort

* Adding RESISC45 test data

* Use os.path.join for paths

* Remove unused import

* Add tests for ChesapeakeCVPR trainer

* mypy fixes

* Fix most Chesapeake tests

* Fixed test batching issue in the test dataset

* Get 100% coverage of Chesapeake trainer

* use a FakeTrainer instead of pl.Trainer

* Add naive BYOL trainer tests

* Style fixes

* Add 100% test coverage for BYOL trainer

* Get 100% coverage for LandCover.ai trainer

* Simplify tests

* Add tests for NAIP + Chesapeake trainer

* Fix tests

* Add tests for checkpoint loading

* Reorganize fixtures and specify scope

* Fix various test bugs

* Mypy fixes

* Reduce patch sizes

* Test fewer possible combinations of params

* Prevent warnings in tests

* Restore missing line of coverage in So2Sat trainer

* Silence resampling warning

* Ignore difference in output classes

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2021-10-26 16:17:50 -05:00
isaac 9b1ecb24e4
Remove Kornia master install inside Github Actions (#203)
* remove kornia master install in tests action

* removed unused ignore comments

* removed unused ignore comments x2
2021-10-22 16:10:37 -05:00
isaac 7d1ff80649
Add BigEarthNet dataset (#197)
* add bigearthnet dataset

* add dummy data for bigearthnet tests

* add bigearthnet unit tests

* updated bigearthnet dataset and tests with s1 imagery

* add bigearthnet to docs

* mypy fixes

* updated docstrings
2021-10-17 11:19:57 -05:00
isaac c0afbf9b6b
add tests for trainer utils (#200) 2021-10-16 23:51:57 -05:00
Adam J. Stewart 173de92ac8
Remove non-geospatial transforms (#198) 2021-10-15 23:59:17 -05:00
Adam J. Stewart 24c3f70f5f
ChesapeakeCVPR: fix non-existing dir support, add unit tests (#195) 2021-10-12 22:20:45 -07:00
Adam J. Stewart 074c5d53d9
Increase test coverage for disambiguate_timestamp (#189) 2021-10-12 18:02:49 -05:00
Ashwin Nair 73215d27d7
Spacenet 4 (#185)
* Add SpaceNet4

* Add tests

* Update docs

* Add option to choose angle subset

* Remove AssertionError and update docs

* Coverage fix

* Fixes
2021-10-12 15:39:49 -05:00
Adam J. Stewart e14980a3eb
Improve sampler performance for pixel-aligned files (#181)
* Improve sampler performance for pixel-aligned files

* Skip merge if only a single file

* Undo changes to hyperparams

* Fix shape, read all bands

* Remove manual single-file reading

* Always keep workers alive

* Various changes in a desperate attempt to improve performance

* Increase epoch size

* Add missing import, fix model name

* Fix tests

* Persistent workers not used unless entire dataset is consumed
2021-10-12 15:34:08 -05:00
isaac 142835cede
Add RESISC45 Trainer (#179)
* add RESISC45 trainer

* update working locally

* Adding ability to choose the random split sizes via config

* If you don't have a val or test split, then return the train split so the Trainer doesn't break by default. If you actually want to train without val/test though, then you should set the appropriate Trainer args.

* RESISC experiments

* Reverting accidental changes

* mypy fix

* add dataset_split unit tests

* Document dataset_split

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2021-10-11 15:35:38 -07:00
Adam J. Stewart 9631a8b1e0
Skip slow sampler tests (#187) 2021-10-11 10:11:37 -05:00
Caleb Robinson 699dfecc0a
Added RCF model to implement the MOSAIKs method (#176)
* Added RCF model

* Rename to RCF

* Update tests/models/test_rcf.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-10-08 21:13:50 +00:00
Adam J. Stewart 7ac915b765
Add __len__ method to GeoDataset and ZipDataset (#175)
* Add __len__ method to GeoDataset and ZipDataset

* Fix type hints
2021-09-30 22:36:53 -05:00
Caleb Robinson bcf30fc97d
Adding new trainers (#145)
* Added support for training on different splits to Chesapeake trainer

* Fixed test script

* Specifying test splits in the test script

* Removing useless prepare_data function from SEN12MS trainer

* Updating LandCoverAI trainer to reflect Chesapeake trainer changes

* Remove verbose in Chesapeake trainer

* Remove adamw in conf files

* Black

* Added experiment run script

* Add augmentation to the landcoverai trainer

* Add augmentation to the landcoverai trainer

* Adding So2Sat trainer

* Fixing style

* Adding So2Sat trainer

* Adding So2Sat trainer

* Adding to so2sat

* Fixing tests

* Add kornia dependency

* Test coverage for GridGeoSampler length

* Added tests for so2sat

* Cleaning up

* Isort

* Adding capability to reindex So2Sat

* Renaming gpu to device

* Setting up so2sat trainer for paper experiments

* So2Sat training sweep

* Idontsort

* Call trainer.tune() step if auto_lr_find is set

* So2Sat trainer work

* Adding SSL method (#162)

* Added support for training on different splits to Chesapeake trainer

* Fixed test script

* Specifying test splits in the test script

* Removing useless prepare_data function from SEN12MS trainer

* Updating LandCoverAI trainer to reflect Chesapeake trainer changes

* Remove verbose in Chesapeake trainer

* Remove adamw in conf files

* Black

* Added experiment run script

* Add augmentation to the landcoverai trainer

* Add augmentation to the landcoverai trainer

* Adding So2Sat trainer

* Fixing style

* Adding So2Sat trainer

* starting SSL trainers

* starting SSL trainers

* Adding BYOL as SSL method, it is fully functional and works for any encoder, next steps includes adding other SSL aproaches like Seasonal Contrast and SSL evaluation at large

* Adding BYOL as SSL method, it is fully functional and works for any encoder, next steps includes adding other SSL aproaches like Seasonal Contrast and SSL evaluation at large

* Making pydocstyle happy

Co-authored-by: Anthony O <anthony.ortiz@microsoft.com>

* Working on experiments

* Updates to So2Sat

* Experiments

* Experiments

* Review changes

* Review changes

* Grabbing the kornia mypy workaround

* updating BYOL to support resnet 50 and updating some docstring

* updating BYOL to support resnet 50 and updating some docstring

* addressing flake8 concerns

* trying to address mypy issues

* mypy

* mypy

* mypy

* adding byol documentation corrections

* Updating byol default and moving experiment scripts to experiments subdir

* Setting up experiment scripts

* Working

* Moving landcoverai seed experiment script

* Fixing formatting in the experiment scripts

* Update torchgeo/trainers/so2sat.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/so2sat.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/byol.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/byol.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/byol.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/byol.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/byol.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/byol.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/byol.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/byol.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Black formatting

* Reorganizing and documenting BYOL code

* Formatting

* BYOL trainer is not Chesapeake specific

* Updating docstrings

* changing to input_channels uniformly

* Fixing BYOL

* Formatting fixes

* Update experiments/run_landcoverai_experiments.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update experiments/run_landcoverai_experiments.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update experiments/run_landcoverai_experiments.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/trainers/byol.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Docstring changes

* Docstring fixes

* Black formatting

* Forward slashes have been judiciously eliminated and I threw in some comments for free

* flake8

* flake8

Co-authored-by: Anthony O <anthony.ortiz@microsoft.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-09-29 15:48:40 -05:00
isaac c9a788a666
Indices Transforms (#127)
* draft indices transform

* import sort

* added AugmentationSequential wrapper for dicts

* updated indices

* fix dim concat bugs

* format

* add kornia dependency

* add augmentationsequenal unit tests

* add augmentationsequential support for boxes and mask dtypes

* add indices tests

* Draft indices tutorial notebook

* move notebook to tutorials folder

* mypy fixes

* fix bug when only image key used in AugmentationSequential

* Created using Colaboratory

* added tutorial to docs

* format

* added kornia master branch dependency'

* refactor notebook to use % cell magic and python to download files

* revert kornia version

* install kornia master branch for mypy checks

* update mypy github action install order

* fix divide by zero error in indices

* Created using Colaboratory

* fix nbsphinx errors

* add TODO to remove kornia in tests action

* format setup.cfg

* minor fixes to indices

* remove unecessary variable

* update mask to cast to original dtype

* removed unused ignore comment

* added gray/rgb/multispectral unit tests

* added tests with boxes

* Created using Colaboratory

* Created using Colaboratory

* fix mypy issues

* updated notebooks in docs

* Updates to tutorials

* Created using Colaboratory

* Created using Colaboratory

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-09-28 17:04:56 -05:00
Isaac Corley 1a49cfffbe update tests 2021-09-28 12:43:27 -07:00
Ashwin Nair 1c833d5d7e
SpaceNet 2 (#155)
* Add Spacenet2

* Fix logical errors

* Use label_glob

* Refactor Spacenet

* Add tests and test data for SpaceNet2

* Make SpaceNet an ABC

* Bugfix

* Add docstring for SpaceNet metaclass

* Formatting

* Add metaclass to docs

* Hack for sn2_AOI_2_Vegas

* Add missing tests

* Change md5 hash for test data

* Update spacenet.py

* Fix regex pattern

* Update regex pattern

* Fixes

* Indent-fix

* Remove nested list

* Cleanup

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2021-09-28 10:55:56 -05:00
isaac a3b636fe99
Add VisionClassificationDataset (#171)
* updated docs

* added VisionClassificationDataset

* refactor PatternNet and RESISC45 to inherit VisionClassificationDataset

* added unit tests and sample data

* refactor PatternNet and RESISC45 to new download/verify checks and fix code coverage

* remove override of __str__

* set default_loader as loader default

* removed loader arg from datasets

* update tests

* format

* remove duplicate code

* updated docstrings
2021-09-27 20:55:50 -05:00
Caleb Robinson 79476bb42a
Added the UC Merced dataset (#169)
* Added UC Merced dataset

* Added UC Merced dataset

* Adding docs and classes to docstring

* Addressing review
2021-09-27 20:14:02 -05:00
Caleb Robinson 489ffdc2bd
Added EuroSat dataset (#167)
* Added EuroSat dataset

* Cleaning up

* Removing unzipped data

* Added to docs

* EuroSat --> EuroSAT to match paper

* Changing class listing to use bullets

* Update torchgeo/datasets/eurosat.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Addressing review

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-09-27 20:13:17 -05:00
Zhuo Zheng 78fe113ce5
Adding ChangeStar model (#157)
* add FarSeg model

* Revised.

* Ran black and working on mypy fixes

* Fixed other mypy issues

* try to fix mypy issues

* Fixing rest of mypy issues

* try to fix mypy issues

* Fixed issue with in_channels and backbone_pretrained

* Removing change to in_channels, formatting doc

* revised.

- improving the docstring of FarSeg
- removing the scale_aware_proj option in FSRelation class
- removing the in_channels option in FarSeg class
- improving the test_farseg.py by parametrization

* changestar

* removing the function `backbone_forward`

* update ChangeStar

* update changestar

* fixed a typo in docstring

* fixing mypy, pytest, sphinx issues

* revised.

major:
- removing unused import
- split the testing case
- removing the redundant docstring

* fixing mypy and sphinx issues

major:
- adding more description for docstring of ChangeStar

* fixing mypy and sphinx issues

* fixing mypy and sphinx issues

* fixing mypy issues

* Update torchgeo/models/changestar.py

Co-authored-by: isaac <22203655+isaaccorley@users.noreply.github.com>

* Update torchgeo/models/changestar.py

Co-authored-by: isaac <22203655+isaaccorley@users.noreply.github.com>

* revised.

* fixing flake8 issues

* fixing mypy issues.

- replacing Tensor with Any, because a list of tensor as value stored in dictionary.

* update ChangeStar

* fixing mypy issues

* fixing mypy issues

* fixing mypy issues

* Adding more docstring about how to use ChangeStar for multi-class change detection

* Adding missing test cases

* revised.

- replacing Dict[str, Any] with Dict[str, Tensor]

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
Co-authored-by: isaac <22203655+isaaccorley@users.noreply.github.com>
2021-09-24 03:36:11 +00:00
Zhuo Zheng 53ff5ffbe5
Add FarSeg model (#150)
* add FarSeg model

* Revised.

* Ran black and working on mypy fixes

* Fixed other mypy issues

* try to fix mypy issues

* Fixing rest of mypy issues

* try to fix mypy issues

* Fixed issue with in_channels and backbone_pretrained

* Removing change to in_channels, formatting doc

* revised.

- improving the docstring of FarSeg
- removing the scale_aware_proj option in FSRelation class
- removing the in_channels option in FarSeg class
- improving the test_farseg.py by parametrization

* removing the function `backbone_forward`

* Various improvements

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-09-21 17:21:13 -05:00
Ashwin Nair 1298706aa7
Set src properties (#156) 2021-09-21 13:54:40 -05:00
Ashwin Nair 30a082d33c
Add download_radiant_mlhub_collection (#152)
* Add download_radiant_mlhub_collection

* Add tests

* Rename download_radiant_mlhub -> download_radiant_mlhub_dataset

* Update test_utils.py

* Update test_utils.py

* Update test_utils.py

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
2021-09-20 07:23:42 +00:00
isaac 459524fedc
Add ZueriCrop dataset (#147) 2021-09-19 23:25:09 +00:00
isaac 77094c21fa
Add ADVANCE dataset (#133)
* updated docs

* added torchaudio as optional dependency

* added sample data for tests

* added dataset

* added advance unit tests

* replaced torchaudio with scipy.io.wavefile.read

* Revert "added torchaudio as optional dependency"

This reverts commit 960d94f67533e83facc080d9a6f9b965a8820294.

* updated to lazy import scipy, updated docstring

* add pytest.importorskip check for scipy

* add sample audio wav file creation details

* add scipy dependency

* downgrading scipy dep to scipy>=1.5.4

* fix pytest.importorskip to return none

* update scipy import error message

* fixed dummy audio data dims

* downgrading scipy dep to scipy>=0.9.0

* added tests for missing h5py

* format

* fixed missing import test

* Update tests/datasets/test_advance.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-09-19 23:00:56 +00:00
Adam J. Stewart 8a02183f62
CDL: don't re-download dataset if zip files are missing (#138)
* CDL: don't re-download dataset if zip files are missing

* Fix pydocstyle

* Reword checksum parameter
2021-09-16 16:22:10 +00:00
Adam J. Stewart 8c49b2a906
Proposal: better handling of partial timestamps (#134)
* Proposal: better handling of partial timestamps

* Parse format string directly

* Add unit tests

* Windows is broken

* Windows is still broken

* Fix mypy

* Simplify logic

* Fix bug for month 12, add details to docstring
2021-09-16 11:07:09 -05:00
Caleb Robinson a82d3f47b4
Cleaning up ChesapeakeCVPR (#131)
* Implemented way to test if ChesapeakeCVPR has been downloaded

* Cleaned up the way transforms are used in ChesapeakeCVPRDataModule and changed the test dataloader to use a GridGeoSampler

* Adding other transforms and cleaning up style

* Changing masks to mask throughout

* Organize the way metrics are logged

* Formatting

* Adding rasterio data loadering best practices and fixing trainer a bit

* Script for evaluating trained models over all states

* Forgot to update the MD5 after changing the dataset nodata masks

* Update test_chesapeakecvpr_models.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Changes recommended by Adam

* Idon'tsort

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-09-15 11:52:51 -05:00
Ashwin Nair 0ce0a591b6
Add Spacenet 1: Building Detection v1 (#129)
* Add Spacenet 1

* Add test data

* Style fixes

* Convert Spacenet1 to VisionDataset

* Add option for selecting imagery

* Consolidate spacenet

* Create single spacenet.py for all spacenet datasets
* Create single spacenet directory for all spacenet test data
* Create single test_spacenet.py for testing all spacenet datasets

* Add copyright

* Reorder Spacenet in docs

* Test both rgb & 8band

* Rename Spacenet -> SpaceNet
2021-09-15 11:35:15 -05:00
isaac f60cbee39b
Add RESISC45 Dataset (#126)
* updated docs

* added sample data for tests

* added unit tests

* added dataset

* updated tests to not run on windows due to rar
2021-09-12 10:50:15 -05:00
isaac 67f7d8a520
Add ETCI2021 Dataset (#119)
* add dataset to docs

* add sample test data

* add dataset unit tests

* add etci2021 dataset

* updated tests

* updated dataset to download only desired split file

* removed flood mask from file list for test set and other formatting

* Update torchgeo/datasets/etci2021.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* fixed doc formatting

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-09-11 20:05:38 -05:00
Isaac Corley 7de01364c9 added tests 2021-09-10 14:49:19 -05:00
Isaac Corley ba4cd3f75d added dummy sample test data 2021-09-10 14:49:19 -05:00
Caleb Robinson c8a811fbae Fixing tests 2021-09-09 15:12:22 -07:00
Caleb Robinson ccb7f1912d Refactoring how the trainer modules are called from train.py and how the configuration files are structured 2021-09-09 15:12:22 -07:00
Isaac Corley 46e7050361 updated unit tests 2021-09-07 21:59:22 -05:00
Isaac Corley 0d5d69605c added fccd models unit tests 2021-09-07 21:59:22 -05:00
Isaac Corley 928ca701ec added dataset tests 2021-09-07 21:51:53 -05:00
Isaac Corley 64e3ecdab4 added sample data for tests 2021-09-07 21:51:53 -05:00
Adam J. Stewart 15903975ad
Increase coverage of RasterDataset 2021-09-06 20:58:01 -05:00
Isaac Corley b35a2027ce check image for temporal dim t=2 (t, c, h, w) 2021-09-05 14:58:18 -05:00
Isaac Corley 8ad7f4eb41 replaced dataset samples with dummy data 2021-09-05 14:58:18 -05:00
Isaac Corley 5c3371aa94 updated tests to work with dummy data and reformatted to pass pipeline 2021-09-05 14:58:18 -05:00
Isaac Corley d4f6268ac9 formatted 2021-09-05 14:58:18 -05:00
Isaac Corley 647c95bf2b added dataset tests 2021-09-05 14:58:18 -05:00
Isaac Corley d038cde1d3 added test sample dataset of 2 image pairs 2021-09-05 14:58:18 -05:00
Caleb Robinson 04355ecc2f Formatting 2021-09-03 17:43:41 -05:00
Caleb Robinson c28d31df70 Formatting 2021-09-03 17:43:41 -05:00
Caleb Robinson b848935301 Added test to make sure pyproj and shapely work 2021-09-03 17:43:41 -05:00
Adam J. Stewart 174ddfc15d Flake8 fixes 2021-08-31 13:25:05 -05:00
Adam J. Stewart da7e120350 Add license header to all files 2021-08-31 13:25:05 -05:00
Adam J. Stewart c0e0dcf49e Remove real data from CBF tests 2021-08-31 10:52:24 -07:00
Adam J. Stewart 4677592383 Fix isort 2021-08-25 11:19:33 -05:00
Adam J. Stewart 51a4c5ba6c Skip slow tests by default 2021-08-25 11:19:33 -05:00
Adam J. Stewart 2dc95d2fdf Tests: don't leave behind unwanted files 2021-08-20 10:57:30 -05:00
Adam J. Stewart ff151d9b97 Make BoundingBox picklable 2021-08-20 10:57:18 -05:00
Adam J. Stewart c385433ca3 More intelligent sampling 2021-08-16 16:25:22 -05:00
Adam J. Stewart 1dd8ce8866 Implement GridGeoSampler 2021-08-11 11:26:12 -05:00
Adam J. Stewart b801186851
Support older versions of setuptools 2021-08-11 16:08:01 +00:00
Adam J. Stewart 261bf6d6ce
Support older versions of pytest 2021-08-11 16:07:27 +00:00
Adam J. Stewart 2b75665fa5 Get to 100% coverage 2021-08-10 10:06:00 -05:00
Adam J. Stewart 921a3d9654 Add additional ZipDataset tests 2021-08-10 10:06:00 -05:00
Adam J. Stewart 205f313ef6 Merge files support for separate_bands datasets 2021-08-10 10:06:00 -05:00
Adam J. Stewart bd6a6a68af Merge files together when multiple hits 2021-08-10 10:06:00 -05:00
Adam J. Stewart 8beefb7552 Various fixes to GeoDataset 2021-08-10 10:06:00 -05:00
Adam J. Stewart fc1335a839
Remove unused request parameters 2021-08-09 20:02:50 +00:00
Adam J. Stewart ddd20c8f3f
Change IndexError msg 2021-08-06 15:11:32 +00:00
Adam J. Stewart ae8049ac19 More specific FileNotFoundError classes 2021-08-05 16:14:47 -05:00
Adam J. Stewart aa6ca79d73 Remove base_folder from datasets 2021-08-05 09:06:38 -07:00
Adam J. Stewart a70973a46f Fix isort 2021-08-04 10:10:25 -07:00
Adam J. Stewart f4ee974b42 Add unit tests 2021-08-04 10:10:25 -07:00
Adam J. Stewart a74ba2570b Add NAIP dataset 2021-08-02 12:33:47 -07:00
Caleb Robinson a54359dcde
Refactor trainer logic (#54)
* Moving task specific configuration logic from train.py into respective classes

* Small fixes

* Adding basic FCN model for benchmarking

* Adding simple FCN model

* Removing OrderedDict from model definitions

* Adding torchgeo.models to docs

* Adding model tests

* Making all the formatters happy

* Adding optimizer options to landcoverai

* Fixing conda environment I think

* How do you feel about a Makefile, Adam?

* Formatting

* Adding some documentation to the readme

* Sanity check command in README

* Fixes in the landcoverai datamodule to make multi-GPU training possible

* Closing figures that we send to Tensorboard

* Fix sphinx missing target warning

* Fix pytest coverage

* Fix flake8

* Update torchgeo/models/__init__.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-07-30 20:58:49 -05:00
Adam J. Stewart 14054a15c0
Use 1-indexed loop for dst write 2021-07-30 23:53:03 +00:00
Adam J. Stewart 21e2e6b2e8
Update README with more details 2021-07-30 19:50:06 +00:00
Adam J. Stewart 4e8616eb35
Remove debugging print statements 2021-07-30 19:20:39 +00:00
Adam J. Stewart 9f7b74c451
Add Chesapeake Dataset (#18)
* Add Chesapeake Dataset

* Update to use GeoDataset base class

* Implement index, getitem, plot

* Add unit tests

* Fix Windows tests

* Remove extent and bbox
2021-07-27 10:21:24 -07:00
Adam J. Stewart 72d667687b
Remove dependency on cartopy (#51)
* Remove dependency on cartopy

* Remove extent and bbox
2021-07-27 10:19:50 -07:00
Caleb Robinson 18dfd99b50 Updating landcoverai tests to use 512x512 sized images 2021-07-26 15:32:26 -05:00
Caleb Robinson aeaffb1dbc Initial commit for the landcoverai trainer 2021-07-26 15:32:26 -05:00
Adam J. Stewart 13b360dc83 Add tests for sen12ms trainer 2021-07-25 18:56:00 -04:00
Adam J. Stewart 0bc26a667d Add tests for train.py 2021-07-25 18:02:30 -04:00
Adam J. Stewart 829297f386 Add tests for download/extraction logic 2021-07-25 15:40:39 -04:00
Caleb Robinson acbf4dff99 Moving band lists to SEN12MS Dataset. Testing it. 2021-07-23 22:14:09 -05:00
Caleb Robinson 5d2dc8f96e Updated test_train to match new way of passing arguments. Fixed mypy problem. 2021-07-23 22:14:09 -05:00
Adam J. Stewart caac98b900 Override download_url in multiple locations 2021-07-23 17:35:06 -05:00
Adam J. Stewart bbccc2d315 Override the right download_url 2021-07-23 17:35:06 -05:00
Adam J. Stewart 79abd392df torchvision 0.10 no longer has a conflict 2021-07-23 17:35:06 -05:00
Adam J. Stewart 6514a2c2b9 More fixes 2021-07-23 17:35:06 -05:00
Adam J. Stewart 31c274b74c More overrides 2021-07-23 17:35:06 -05:00
Adam J. Stewart 332d775928 More test fixes 2021-07-23 17:35:06 -05:00
Adam J. Stewart 3bf1c6f8f1 Fix COWC download_url override 2021-07-23 17:35:06 -05:00
Adam J. Stewart 02ca07bcef Fix download mocks 2021-07-23 17:35:06 -05:00
Adam J. Stewart 90ba939135 Add tests for SEN12MS task 2021-07-21 12:23:35 -05:00
Adam J. Stewart 4edfa1036e Don't actually display plots 2021-07-21 09:37:28 -05:00
Adam J. Stewart c36fcfbd44 Add test for SEN12MS check integrity 2021-07-21 09:37:28 -05:00
Adam J. Stewart d24c9a84ef Add plotting tests 2021-07-21 09:37:28 -05:00
Adam J. Stewart a000bd3b4d Add colormap to CDL test files 2021-07-21 09:37:28 -05:00
Caleb Robinson fd7122b415 h5py at version 2.10.0 raises a ValueError instead of an IndexError 2021-07-20 20:34:01 +00:00
Caleb Robinson cfc5884311 Adding lightweight check for dataset integrity to SEN12MS 2021-07-20 19:10:16 +00:00
Caleb Robinson e460d5af23
Pytorch lightning based training framework (#42)
* Initial commit of lightning based model training framework

* Made save directories work correctly

* Add pytorch-lightning dependency and some comments

* More documentation and cosmetic tweaks

* Typo fix

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Fix some style issues

* Fix pydocstyle

* Add missing sklearn dependency

* Try to get conda environment working

* Add documentation

* Ignore missing target reference

* Make train.py executable

* Ignore logs and output dirs

* Raise exceptions instead of returning

* Move all argparse stuff to set_up_parser

* Add tests for train.py

* Fix Python 3.6 compatibility

* Fix support for older versions of pytorch-lightning

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-07-17 16:57:18 -07:00
Adam J. Stewart b50c3582cb
Add Sentinel tests 2021-07-16 20:49:08 +00:00
Adam J. Stewart d7f2df061f
Add Landsat tests 2021-07-16 20:20:13 +00:00
Adam J. Stewart 53fb4b28b9
Fix intersection for boxes on boundary 2021-07-16 20:19:36 +00:00
Adam J. Stewart 7e8fd461d8
Add instructions for generating fake images 2021-07-16 19:36:17 +00:00
Adam J. Stewart fae4a0fcc1
Add tests for CDL 2021-07-16 19:09:32 +00:00
Adam J. Stewart 73e09ce833
Add tests for dataset CRS 2021-07-16 17:38:53 +00:00
Adam J. Stewart 435e394f42
Fix bug in interleaved rtree 2021-07-15 16:16:13 +00:00
Adam J. Stewart 94229db44f
Add support for GeoDatasets in different CRS 2021-07-15 15:13:17 +00:00
Adam J. Stewart 0cec5cf52d Fix isort 2021-07-14 14:45:03 -05:00
Adam J. Stewart 06f471b3fe Fix flake8 2021-07-14 14:45:03 -05:00
Adam J. Stewart fbc3e9e0db Greatly expand invalid BoundingBox checking 2021-07-14 14:45:03 -05:00
Adam J. Stewart 3b1d574722 More test coverage for xfails 2021-07-14 14:45:03 -05:00
Adam J. Stewart b546e18bc7 Add xfail for invalid BoundingBox 2021-07-14 14:45:03 -05:00
Adam J. Stewart cec1f8b764 Fix mypy/flake8 2021-07-14 14:45:03 -05:00
Adam J. Stewart 484f008a05 Add unit tests for samplers 2021-07-14 14:45:03 -05:00
Adam J. Stewart 18c6ddebbd Add tests for collate_dict 2021-07-14 14:45:03 -05:00
Adam J. Stewart 8397494554 Ensure that self.index is defined 2021-07-14 14:45:03 -05:00
Adam J. Stewart 6008649a96 Fix missing imports 2021-07-14 14:45:03 -05:00
Adam J. Stewart fd3e3a1ad2 Add basic Sentinel dataset 2021-07-14 14:45:03 -05:00
Adam J. Stewart e6b4031665 Move existing GeoDatasets to VisionDataset for now 2021-07-14 14:45:03 -05:00
Adam J. Stewart d682fa2f56
Fix bug in monkeypatch.setenv usage 2021-07-08 12:48:52 -05:00
Adam J. Stewart 3d0ac8b3ec
LandCoverAI should be a GeoDataset 2021-07-08 12:47:23 -05:00
Caleb Robinson 4a3c7e0de5 Dependencies, tests, cleaning up 2021-07-07 17:03:23 -05:00
Adam J. Stewart 48cc3f36a3 Update imports 2021-07-04 17:20:31 -05:00
Adam J. Stewart 7730f1036c
Various fixes to documentation 2021-06-29 17:10:21 -05:00
Adam J. Stewart 4c6ddce84a
Silence mypy errors 2021-06-24 21:36:01 +00:00
Adam J. Stewart ed61dc484b
Add unit tests for transforms 2021-06-24 19:34:44 +00:00
Adam J. Stewart cd7172a71a
TropicalCycloneWindEstimation: test resizing/3-channel images 2021-06-24 18:01:25 +00:00
Adam J. Stewart f6e3f0ab35
Add unit tests for CV4AKenyaCropType dataset 2021-06-24 17:20:23 +00:00
Adam J. Stewart 7a616d0a8b Add unit tests 2021-06-24 10:48:41 -05:00
Adam J. Stewart 35da365d59 Fix tests 2021-06-24 10:15:00 -05:00
Adam J. Stewart e1a889c4c0 Don't use collection_id 2021-06-24 10:15:00 -05:00
Adam J. Stewart 685cf6e253 Actually use collection_id 2021-06-24 10:15:00 -05:00
Adam J. Stewart 011aaed695 Add unit tests for dataset 2021-06-24 10:15:00 -05:00
Adam J. Stewart 5a35f2f40d
Fix security vulnerability 2021-06-23 14:44:42 +00:00
Adam J. Stewart b59f60d0fb
Add tests for LandCoverAI Dataset 2021-06-22 19:07:08 +00:00
Adam J. Stewart ade373e82b
Fix tests 2021-06-22 18:41:48 +00:00
Adam J. Stewart fa8399eb6a
Parametrize tests 2021-06-22 18:08:03 +00:00
Adam J. Stewart 9ee482e88f
Skip unrar tests on Windows 2021-06-22 16:21:14 +00:00
Adam J. Stewart 6df3496d6a
See if cache works with non-existing dirs 2021-06-22 15:47:01 +00:00