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

49 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 5174f8ad36
Bump matplotlib from 3.9.0 to 3.9.2 in /requirements (#2227)
* Bump matplotlib from 3.9.0 to 3.9.2 in /requirements

Bumps [matplotlib](https://github.com/matplotlib/matplotlib) from 3.9.0 to 3.9.2.
- [Release notes](https://github.com/matplotlib/matplotlib/releases)
- [Commits](https://github.com/matplotlib/matplotlib/compare/v3.9.0...v3.9.2)

---
updated-dependencies:
- dependency-name: matplotlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix everything except dates

* Suppress remaining mypy errors

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2024-08-14 15:22:12 +00:00
Hitesh Tolani 44ce0073b2
Datasets: add support for pathlib.Path (#2173)
* Added pathlib support for  ``geo.py``

* Fixed failing ruff checks.

* Fixed additional ruff fromating errors

* Added complete ``pathlib`` support

* Additional changes

* Fixed ``cyclone.py`` issues

* Additional fixes

* Fixed ``isinstance`` and ``Path`` inconsistency and

* Fixed mypy errors in ``cdl.py``

* geo/utils: all paths are Paths

* datasets: all paths are Paths

* Test Paths

* Type checks only work for latest torchvision

* Fix tests

---------

Co-authored-by: Hitesh Tolani <hitesh.ht.2003@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2024-07-18 12:16:41 +02:00
dependabot[bot] f0a2571c98
Bump pillow from 10.3.0 to 10.4.0 in /requirements (#2150) 2024-07-02 10:44:30 +02:00
dependabot[bot] 5cfbd6512d
Bump ruff from 0.4.4 to 0.4.5 in /requirements (#2080)
* Bump ruff from 0.4.4 to 0.4.5 in /requirements

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.4.4...v0.4.5)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* min version of numpy now supports type hints

* pre-commit: update ruff

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2024-05-23 21:35:27 +00:00
Slawek Bierwiaczonek bd9c75798e
Prettier formatter (#2018)
* Formatted with Prettier

* Added package-lock.json

* Removed the .idea folder

* Removed version

* Added .prettierignore with tests/data/*

* Added npm updates

* Updated prettier

* Update style.yaml

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

* Updated linters section

* Added Prettier hook

* Added Prettier hook

* Added exclude regex

* Update .prettierignore

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

* Added package.json and package-lock.json

* Added npm ci flag

* Formatted with Prettier

* Updated .gitignore

* Reverted changes in data folder

* Added .idea to ignored entries

* Delete package-lock.json from root

* Added cache dependency path

* Formatted with Prettier

* Updated tests.yaml

* Updated regex

* Updated actions/checkout to v4.1.4

* Updated SECURITY and dependabot

* Removed .idea and requirements/node_modules

* Updated package files

* Changed .yaml files format

* Added EOL

* Updated contributing.rst

* Updated style.yaml

* Updated style CI

* Added node_modules to ignored entries

* Updated npm install command

* Added *.json root files to ignored entries

* Updated prettier version range

* Updated prettier install command

* Relocated # Node stuff

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2024-05-03 15:35:34 +02:00
dependabot[bot] 6ebe288ccb
Bump torchvision from 0.17.2 to 0.18.0 in /requirements (#2023)
* Bump torchvision from 0.17.2 to 0.18.0 in /requirements

Bumps [torchvision](https://github.com/pytorch/vision) from 0.17.2 to 0.18.0.
- [Release notes](https://github.com/pytorch/vision/releases)
- [Commits](https://github.com/pytorch/vision/compare/v0.17.2...v0.18.0)

---
updated-dependencies:
- dependency-name: torchvision
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump torch too

* Ignore no longer needed

* Newer torch needed for mypy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2024-04-25 20:07:11 +02:00
Adam J. Stewart b3b5e45990
pre-commit: newer skimage is required (#2017) 2024-04-22 10:03:39 +04:00
Adam J. Stewart d9991ed154
Use ruff (#1994)
* 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
2024-04-15 23:46:00 +02:00
Adam J. Stewart ea57469b0b
Drop Python 3.9 support (#1966) 2024-04-04 09:15:56 +02:00
Ashwin Nair de9509e7f3
Add pillow and update hooks (#1977) 2024-04-03 09:49:23 +02:00
dependabot[bot] f12f6255ed
Bump torchvision from 0.16.2 to 0.17.0 in /requirements (#1835)
* Bump torchvision from 0.16.2 to 0.17.0 in /requirements

Bumps [torchvision](https://github.com/pytorch/vision) from 0.16.2 to 0.17.0.
- [Release notes](https://github.com/pytorch/vision/releases)
- [Commits](https://github.com/pytorch/vision/compare/v0.16.2...v0.17.0)

---
updated-dependencies:
- dependency-name: torchvision
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump torch too

* Remove unneeded type ignores

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2024-01-30 21:07:36 +00:00
dependabot[bot] 7b8692b3f4
Bump black[jupyter] from 23.12.1 to 24.1.0 in /requirements (#1829)
* Bump black[jupyter] from 23.12.1 to 24.1.0 in /requirements

Bumps [black[jupyter]](https://github.com/psf/black) from 23.12.1 to 24.1.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.12.1...24.1.0)

---
updated-dependencies:
- dependency-name: black[jupyter]
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update TorchGeo

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2024-01-27 11:12:00 +00:00
Ashwin Nair 61efd2e2c4
Update pre-commit cfg (#1801) 2024-01-10 07:45:41 +01:00
Ashwin Nair e572b74571
Fix for pre-commit (#1781) 2023-12-19 14:37:22 -06:00
Ashwin Nair d156f183ac
Update pre-commit config (#1715) 2023-11-06 11:04:30 +00:00
dependabot[bot] 94d0619fe5
Bump matplotlib from 3.8.0 to 3.8.1 in /requirements (#1708)
* Bump matplotlib from 3.8.0 to 3.8.1 in /requirements

Bumps [matplotlib](https://github.com/matplotlib/matplotlib) from 3.8.0 to 3.8.1.
- [Release notes](https://github.com/matplotlib/matplotlib/releases)
- [Commits](https://github.com/matplotlib/matplotlib/compare/v3.8.0...v3.8.1)

---
updated-dependencies:
- dependency-name: matplotlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* plt.show now has type hints

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2023-11-01 23:00:12 +00:00
Adam J. Stewart 984e222790
Add command line script (#1559)
* Add command line script

* Label PRs correctly

* Flake8 fix

* Add callbacks

* Update all conf files

* Enforce class of model/data

* Update BYOL tests

* Update all tests

* Use default num workers: 0

* Variable interpolation only supported by omegaconf backend

* Fix regression tests

* Ensure that jsonargparse is installed during testing

* Bump minimimum lightning version

* Workaround for lightning/jsonargparse bugs

* Ignore Python 3.9 warning message

* Add test coverage for __main__.py

* Increase coverage of PixelwiseRegressionTask

* jsonargparse bug fixed in latest release

* Revert "jsonargparse bug fixed in latest release"

This reverts commit 4f38cdfca3.

* Use default logging frequency

* Ensure that metrics are actually logged

* Fix ObjectDetectionTask logging

* Ignore type errors

* Not all need to be ignored
2023-09-27 10:11:52 -07:00
Adam J. Stewart 1b0ca5a5a8
Ensure that none of our minimum version tests are skipped (#1587)
* Ensure that none of our minimum version tests are skipped

* Try pyvista instead

* Try no version

* What is going on

* Try pyvista 0.32.0

* Try pyvista 0.35.0

* Try pyvista 0.35.1

* Try pyvista 0.34.0

* Try pyvista 0.34.2

* Try pyvista 0.34.1

* 0.34.2 is the new min version
2023-09-25 10:51:36 -05:00
dependabot[bot] 6f72f1c6ff
Bump lightning from 2.0.8 to 2.0.9 in /requirements (#1564) 2023-09-18 20:18:30 +00:00
dependabot[bot] 2f0458db44
Bump lightning from 2.0.2 to 2.0.3 in /requirements (#1406)
* Bump lightning from 2.0.2 to 2.0.3 in /requirements

Bumps [lightning](https://github.com/Lightning-AI/lightning) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/Lightning-AI/lightning/releases)
- [Commits](https://github.com/Lightning-AI/lightning/compare/2.0.2...2.0.3)

---
updated-dependencies:
- dependency-name: lightning
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update datamodule base class

* Check attributes first

* Fix remaining type hints

* More fixes

* Try again

* Try casting

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2023-06-08 04:11:19 +00:00
Adam J. Stewart 5b74c971cb
Update test minversions, pyvista min version (#1276)
* Update test minversions

* Test newer pyvista

* Add headless server

* try pyvista 0.30.0

* try pyvista 0.27.0

* try pyvista 0.28.0

* try pyvista 0.29.0

* try pyvista 0.28.1

* pyvista 0.29 confirmed as min version
2023-04-24 13:34:49 -05:00
Isaac Corley d3c82a5ac8
Refactor train.py (#1237)
* add pretrain.py tested with seco100k

* refactor

* add pretrain.py tested with seco100k

* refactor

* refactor to train.py and add simclr

* revert simclr and pretrain.py changes

* revert more simclr changesg

* add refactor to configs and train.py

* add hydra.utils.instantiate import

* fix flake8

* update tests and add hydra-core to deps

* fix byol tests

* update exp name

* format

* remove evaluate.py

* add hydra-core to min tests deps

* update tests

* add trainer to configs and use lightning.Trainer insteead of pl.Trainer

* add eurosat100 test

* update train.py

* lightning.Trainer -> lightning.pytorch.Trainer

* remove omegaconf

* update hydra-core to 1.1.1 and fix mypy

* add recursive hydra config test

* update coment

* update test config

* fix tests

* add omegaconf back in

* remove hydra recursive test

* update hydra-core to 2.3.0 for ci

* Try older hydra

* Older hydra requires old omegaconf

* Try older hydra

* Try newer hydra

* Try older hydra

* Try newer hydra

* Finalize minimum dep versions

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2023-04-23 15:37:29 -07:00
Adam J. Stewart e0f9ece591
Drop Python 3.8 support (#1246) 2023-04-15 20:27:51 -05:00
dependabot[bot] 28ce9599de
Bump torchvision from 0.14.1 to 0.15.1 in /requirements (#1177)
* Bump torchvision from 0.14.1 to 0.15.1 in /requirements

Bumps [torchvision](https://github.com/pytorch/vision) from 0.14.1 to 0.15.1.
- [Release notes](https://github.com/pytorch/vision/releases)
- [Commits](https://github.com/pytorch/vision/compare/v0.14.1...v0.15.1)

---
updated-dependencies:
- dependency-name: torchvision
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* bump pytorch too

* Fix tests

* bump precommit

* blacken

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2023-03-16 17:28:39 +00:00
dependabot[bot] 392d46737c
Bump pytorch-lightning[extra] from 1.9.4 to 2.0.0 in /requirements (#1178)
* Bump pytorch-lightning[extra] from 1.9.4 to 2.0.0 in /requirements

Bumps [pytorch-lightning[extra]](https://github.com/Lightning-AI/lightning) from 1.9.4 to 2.0.0.
- [Release notes](https://github.com/Lightning-AI/lightning/releases)
- [Commits](https://github.com/Lightning-AI/lightning/compare/1.9.4...2.0.0)

---
updated-dependencies:
- dependency-name: pytorch-lightning[extra]
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove deprecated features

* pytorch_lightning -> lightning

* bump radiant-mlhub too

* isort fix

* lightning does not yet have public type hints

* More ignores

* blanket ignore

* blanket ignore

* Fix function typo

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2023-03-16 11:14:48 -05:00
Ashwin Nair 524030c50b
Update pre-commit config (#1137) 2023-02-23 07:30:46 -07:00
dependabot[bot] 9cd3b99f35
Bump mypy from 0.991 to 1.0.0 in /requirements (#1089)
* Bump mypy from 0.991 to 1.0.0 in /requirements

Bumps [mypy](https://github.com/python/mypy) from 0.991 to 1.0.0.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.991...v1.0.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump upper bound

* mypy fixes

* Ignore undocumented base class

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2023-02-06 17:20:42 -06:00
dependabot[bot] 2fe0c1cf3e
Bump black[jupyter] from 22.12.0 to 23.1.0 in /requirements (#1080)
* Bump black[jupyter] from 22.12.0 to 23.1.0 in /requirements

Bumps [black[jupyter]](https://github.com/psf/black) from 22.12.0 to 23.1.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/22.12.0...23.1.0)

---
updated-dependencies:
- dependency-name: black[jupyter]
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Style changes

* Resolve discrepancy between black and pydocstyle

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2023-02-01 22:26:54 +00:00
Adam J. Stewart fc7a993058
Drop Python 3.7 support (#1058)
* Drop Python 3.7 support

* Don't update torch

* Drop version specifier

* Update pyupgrade

* Update OpenCV

* Python 3.8-specific code changes

* Clean up step name

* bump pillow
2023-01-30 11:17:34 -06:00
Ashwin Nair 48b561dbca
Update pre-commit hooks (#987) 2022-12-29 08:34:21 -06:00
Ashwin Nair 1aae6d470f
Update pre-commit hooks (#904) 2022-11-17 11:05:58 -06:00
Ashwin Nair 3374074e2b
Update pre-commit hooks (#883) 2022-11-02 08:31:14 -05:00
Adam J. Stewart 3f47ea3a29
Update torchmetrics dep in other places (#832) 2022-10-13 16:16:58 -05:00
Ashwin Nair 90d6632c73
Update lightning dependency (#738) 2022-08-22 08:05:39 -07:00
Ashwin Nair 90458ab608
Update pre-commit config (#718) 2022-08-13 01:15:52 -05:00
Ashwin Nair 9971189762
Update pre-commit hooks (#558) 2022-06-06 18:49:21 +00:00
Adam J. Stewart 0a68c1549a
git pre-commit: run pyupgrade first (#494) 2022-04-05 09:15:59 -07:00
Ashwin Nair 7aa278e2de
Correct tag for pyupgrade hook (#490) 2022-03-30 17:14:56 +00:00
Adam J. Stewart f20f02a93a
Upgrade all files to Python 3.7+ syntax (#486)
* Upgrade all files to Python 3.7+ syntax

* Update contributing guide

* Move pyupgrade to correct section
2022-03-30 11:29:39 -05:00
Ashwin Nair 83f4be7dbd
Update hooks (#489) 2022-03-30 07:53:50 -05:00
Ashwin Nair 1d8e010442
Update hook (#464) 2022-03-15 08:36:51 -05:00
Ashwin Nair 3f7e525fbd
Hook update (#378) 2022-01-30 08:28:51 -06:00
Ashwin Nair b921ffb728
Add torchmetrics as pre-commit dependency (#362) 2022-01-19 12:50:54 -06:00
Ashwin Nair c955b0d093
Add numpy dependency (#346) 2022-01-01 01:53:34 -06:00
Ashwin Nair 41533ffb3e
Update hooks (#330) 2021-12-26 08:06:16 -06:00
Ashwin Nair 9040e72f8e
mypy v0.920 update (#299) 2021-12-17 14:18:50 +00:00
Adam J. Stewart 0eadac4e2c
black: skip magic trailing comma 2021-10-26 16:26:58 -05:00
Ashwin Nair 025ff43d53
Update pre-commit config (#204) 2021-10-23 02:07:38 -05:00
Ashwin Nair b48b5cd2ad
Merge pull request #137 from ashnair1/pre-commit
Add pre-commit config
2021-09-15 15:46:35 -07:00