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

26 Коммитов

Автор SHA1 Сообщение Дата
Adam J. Stewart d86e7c2f31
Document TorchGeo alternatives (#1742) 2024-01-10 07:44:51 +01:00
Adam J. Stewart 8a842055e1
Remove benchmarking tutorial (#1521)
* Debug failing notebook tests

* Known working nbmake

* Remove buggy tutorial

* Undo version change

* No longer need to rerun tests

* Update tutorials to new syntax
2023-09-21 08:00:34 -05:00
Adam J. Stewart faa050398c
Fix broken URLs (#1125)
* Fix broken URLs

* Flake8 fix

* Don't change Chesapeake URL
2023-02-26 10:14:37 -08:00
Nils Lehmann 60eb61b5fa
Add Multi-Weight Support API (#917)
* load pretrained weights

* change name millionaid

* restructure and additional weights

* rename sentinel1 weights

* add vit small weights

* forgot to add vit.py

* struggling with test

* wrong name failing test

* feedback on tests

* increase test coverage

* fix failing test

* fix failing test

* fix failing test and add vit tests

* fix failing vit test

* torchgeo.models.utils

* forgot utils file

* typo num channels

* nitpick docs, version torchvision

* another try min dependencies

* add documentation table

* expand pytests to test pretrained weights on tasks

* reverse changes to byol task

* add tests to init pretrained weights from config

* forgot to add the conf files

* change path

* increase test coverage

* vit tests all pass locally including slow

* now remote

* fix tests another one

* add a draft tutorial

* run black on tutorial notebook

* Tutorial typo fixes

* Lower min torch/vision versions

* Fix bad rebase

* Remove dead code

* Flake8 fixes

* Consistent in_chans

* Black fixes

* bison > yacs

* Remove one more reference

* Download modified weights from hugging face

* Add entrypoints

* Add torch.hub support

* progress arg is required

* Fix model loading for resnet18

* Add transforms, update tests

* VIT -> ViT

* add seco weights

* Fix type hints

* Link to timm docs

* Fix pydocstyle

* Try to fix timm docs link

* Fix tests

* Nuke ignores

* Ignore timm links

* Add model API methods

* Add to __init__ and document

* Test model API functions

* fix tests

* Use correct documentation link for intersphinx

* Typos

* Fix Windows tests

* meth -> func

* Explicit function scope

* weight-specific filename

* Support enums in classification trainer

* Update other trainers too

* Fix regression tests

* Fix classification tests

* Fix byol tests

* Fix types

* progress_bar is required arg

* Test weight enums

* Fix pickling

* Fix regression tests

* Improve coverage of classification tests

* Improve coverage of BYOL tests

* Update resnet table

* Update ViT table

* Update get_state_dict usage

* Remove unused YAML files

* Update table widths

* Documentation improvements

* Tweak tables

* Try to fix Windows tests

* Revert "Try to fix Windows tests"

This reverts commit 1325b13ff7.

* Monkeypatch everything

* Revert "Monkeypatch everything"

This reverts commit e3e8d7d042.

* Revert "Revert "Monkeypatch everything""

This reverts commit 9b27bd705b.

* Patch things not at the source

* Fix missing import

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2023-01-22 14:25:49 -08: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
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
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
Adam J. Stewart 9911afef89 Minor grammar fixes 2021-09-24 16:56:47 -07:00
Caleb Robinson 10508dcad4 Renamed trainer tutorial 2021-09-24 16:56:47 -07:00
Caleb Robinson d04fc4bd43 Added tutorial to the docs 2021-09-24 16:56:47 -07:00
Adam J. Stewart cc53ee2e8a Move contribution guide to documentation 2021-09-22 09:20:58 -07:00
Adam J. Stewart 161e9de2cc
Add installation instructions (#153)
* Add installation instructions

* Comment out instructions that require a stable release
2021-09-22 09:41:52 -05:00
Adam J. Stewart 2c1672d08c
Don't show tutorial sections 2021-09-03 13:37:18 -05:00
Adam J. Stewart a8be9b5328
Clean up index file 2021-09-03 13:32:35 -05:00
Caleb Robinson 56e300929f License removal team 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 d7d901c866 Consolidate notebooks 2021-08-25 11:19:33 -05:00
Adam J. Stewart 36c3e17154 Add tutorials to documentation 2021-08-25 11:19:33 -05: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
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 f6c91f4ebc
Add glossary 2021-07-02 18:18:57 -05:00
Adam J. Stewart 9de6e6d508
Add preliminary Samplers 2021-07-01 22:35:19 +00:00
Adam J. Stewart 7730f1036c
Various fixes to documentation 2021-06-29 17:10:21 -05:00
Adam J. Stewart 4635c6afb4
Keep API docs up-to-date 2021-06-29 13:42:47 -05:00
Adam J. Stewart 00d619e946
Add documentation 2021-06-15 21:02:36 +00:00