* reverse idtrees coords
* clip boxes to image bounds
* undo coordinate reversal
* add filter_boxes function
* filter boxes outside of bounds in idtrees
* format
* Revert utils.py
* flake8 fixes
* fix mypy errors
* fix bug overriding some labels
* fix image size
* Remove version added line
* add function overloads
* add comments for clarity
* use id counter for test set
* Sentinel-2: add support for files downloaded from USGS EarthExplorer
* Style fix
* Fix driver
* Properly close filehandles
* Sentinel is uint16, not int32
* Fix import order
* Use correct resolution for each image
* Adjust minx/miny with a smaller stride for the last sample per row/col and issue warning
* style and mypy fixes
* black test fix
* Adjust minx/miny with a smaller stride for the last sample per row/col and issue warning
* style and mypy fixes
* black test fix
* single.py: adapt gridgeosampler to sample beyond limit of ROI for a partial patch (to be padded)
test_single.py: add tests for multiple limit cases (see issue #448)
* format for black and flake8
* format for black and flake8
* once again, format for black and flake8
* Revert "Adjust minx/miny with a smaller stride for the last sample per row/col and issue warning"
This reverts commit cb554c67
* adapt unit tests, remove warnings
* flake8: remove warnings import
* Address some comments
* Simplify computation of # rows/cols
* Document this new feature
* Fix size of ceiling symbol
* Simplify tests
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Bump flake8 from 4.0.1 to 5.0.2 in /requirements
Bumps [flake8](https://github.com/pycqa/flake8) from 4.0.1 to 5.0.2.
- [Release notes](https://github.com/pycqa/flake8/releases)
- [Commits](https://github.com/pycqa/flake8/compare/4.0.1...5.0.2)
---
updated-dependencies:
- dependency-name: flake8
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix line length
* Bump flake8 in setup.cfg
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Bump mypy from 0.961 to 0.971 in /requirements
Bumps [mypy](https://github.com/python/mypy) from 0.961 to 0.971.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.961...v0.971)
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump max support mypy release
* Bump max support mypy release
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Rename VisionDataset to NonGeoDataset
* Keep VisionDataset but add DeprecationWarning
* mypy fix
* More fixes
* More fixes
* cast types
* Undo cast
* Fix usage in test
* No idea why...
* Update more datasets
* millionaid
* test
* separator
* remove type ignore
* type in test
* requested changes
* typos and glob pattern
* task argument description
* add test md5 hash
* Remove download logic
* Type ignore no longer needed
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>