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

Allow passing out_size param to SlidingWindowGeoDataset #2099

Merged
merged 1 commit into from Apr 5, 2024

Conversation

AdeelH
Copy link
Collaborator

@AdeelH AdeelH commented Apr 5, 2024

Overview

This PR allows an out_size param to be passed to SlidingWindowGeoDataset.__init__(). This saves the user from having to manually specify an albumentations resize transform. It also makes it more consistent with RandomWindowGeoDataset.__init__().

Checklist

  • Added unit tests, if applicable
  • Updated documentation, if applicable
  • Added needs-backport label if the change should be back-ported to the previous release
  • PR has a name that won't get you publicly shamed for vagueness

Notes

N/A

Testing Instructions

See new unit test.

This makes it available to SlidingWindowGeoDataset as well, so that the user does not have to manually create a resize albumentations transform to do this.
@AdeelH AdeelH mentioned this pull request Apr 5, 2024
6 tasks
Copy link

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.07%. Comparing base (b621ac7) to head (c297c4e).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2099   +/-   ##
=======================================
  Coverage   90.07%   90.07%           
=======================================
  Files         197      197           
  Lines        9840     9842    +2     
=======================================
+ Hits         8863     8865    +2     
  Misses        977      977           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AdeelH AdeelH merged commit 76ed7b6 into azavea:master Apr 5, 2024
2 checks passed
@AdeelH AdeelH deleted the geodataset-out-size branch April 5, 2024 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant