Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plot method for VHR10 dataset #847

Merged
merged 54 commits into from
Jan 23, 2023

Conversation

ashnair1
Copy link
Collaborator

@ashnair1 ashnair1 commented Oct 14, 2022

Part 1 of splitting #798 into separate PRs.

Summary of changes:

  • Added tests
  • Added data.py for VHR10
  • Renamed scripts from nwpu.py to vhr10.py.
  • Added scikit-image dependency
  • Updated minimum supported version of scipy

Example plots:

Ground truth and predicition (object detection training)
planes

Controlling features to be shown and their respective opacity
final_img

Closes #894

@github-actions github-actions bot added datasets Geospatial or benchmark datasets testing Continuous integration testing labels Oct 14, 2022
Copy link
Collaborator

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add example plots?

setup.cfg Outdated Show resolved Hide resolved
torchgeo/datasets/vhr10.py Outdated Show resolved Hide resolved
@ashnair1 ashnair1 force-pushed the vhr10-plot-method branch 2 times, most recently from ae05b72 to 43a7162 Compare October 15, 2022 12:55
setup.cfg Outdated Show resolved Hide resolved
Copy link
Collaborator

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More minor comments. My main concerns so far are:

  1. Handling of COCO polygons seems to be much more complex than it used to be
  2. Lots of very recent dependency versions

It would be good to have a justification for these things. Complexity is fine if it's necessary but I always try to avoid it if it isn't. I haven't gotten a chance to play around with finding the minimum versions, but you can always drop the version repeatedly in the file until CI starts to fail to find a lower bound.

tests/data/vhr10/data.py Outdated Show resolved Hide resolved
tests/datasets/test_vhr10.py Outdated Show resolved Hide resolved
tests/datasets/test_vhr10.py Outdated Show resolved Hide resolved
torchgeo/datasets/vhr10.py Outdated Show resolved Hide resolved
torchgeo/datasets/vhr10.py Outdated Show resolved Hide resolved
torchgeo/datasets/vhr10.py Outdated Show resolved Hide resolved
torchgeo/datasets/vhr10.py Outdated Show resolved Hide resolved
torchgeo/datasets/vhr10.py Outdated Show resolved Hide resolved
torchgeo/datasets/vhr10.py Outdated Show resolved Hide resolved
tests/datasets/test_vhr10.py Outdated Show resolved Hide resolved
requirements/min.old Outdated Show resolved Hide resolved
tests/data/vhr10/data.py Outdated Show resolved Hide resolved
torchgeo/datasets/nwpu.py Show resolved Hide resolved
adamjstewart
adamjstewart previously approved these changes Jan 22, 2023
@adamjstewart adamjstewart enabled auto-merge (squash) January 22, 2023 23:35
@adamjstewart
Copy link
Collaborator

Will move nwpu to vhr10 in a follow-up PR.

adamjstewart
adamjstewart previously approved these changes Jan 23, 2023
@adamjstewart adamjstewart merged commit 7c28688 into microsoft:main Jan 23, 2023
@calebrob6
Copy link
Member

image

LGTM!

@adamjstewart adamjstewart mentioned this pull request Feb 2, 2023
yichiac pushed a commit to yichiac/torchgeo that referenced this pull request Apr 29, 2023
* Add plot fn & rename nwpu -> vhr10

* Update test data & add data.py

* Add scikit-image dependency

* Move scikit-image dep to extras

* Comment out check for coverage

* Move skimage import

* Update requirements

* Test requirements

* Update requirements

* Update

* Update

* Update

* Update

* Update

* Update min scipy

* Update min scipy

* Update min scipy

* Update min scipy

* Update min scipy

* Update skimage

* Review comments#1

* Update skimage

* Revert rename to nwpu

* Revert renames

* Update min scipy

* Fix data dirname

* More fixes

* Bump numpy minor version

* Update scipy

* Going back to what worked

* Ignore numpy warning

* Edit

* Edit warning

* Ignore another warning

* Insanity

* Fix pooch

* Try older skimage

* Try older scipy

* scipy 1.2.0

* scipy 1.4.0

* scipy 1.5.0

* scipy 1.4.2

* scipy 1.6.0

* scipy 1.5.4

* scipy 1.5.2

* scipy 1.5.1

* scipy 1.5.1 is new min dep version

* Fix skip

* Newer scipy

* scipy 1.6.3

* scipy 1.6.0

* scipy 1.6.1

* scipy 1.6.2

* scipy 1.6.2 is new min

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
@ashnair1 ashnair1 deleted the vhr10-plot-method branch November 9, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasets Geospatial or benchmark datasets testing Continuous integration testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using VHR10 dataset with AugmentationSequential
4 participants