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 support for temporal data #1803
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AdeelH
force-pushed
the
temporal
branch
3 times, most recently
from
June 22, 2023 19:16
7e113b6
to
f2476b1
Compare
- MultiRasterSourceConfig can now also build a TemporalMultiRasterSource if temporal=True - MultiRasterSource can now work with temporal sub raster sources
Codecov Report
@@ Coverage Diff @@
## master #1803 +/- ##
==========================================
+ Coverage 79.53% 79.83% +0.29%
==========================================
Files 187 188 +1
Lines 9038 9182 +144
==========================================
+ Hits 7188 7330 +142
- Misses 1850 1852 +2
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR allows Raster Vision to read temporal data i.e. sequences of images.
Major changes:
TemporalMultiRasterSource
that stacks (rather than concatenates (likeMultiRasterSource
)) images from sub sources to get spatiotemporal chips of shape (T, H, W, C).XarraySource
can now accept and read from aDataArray
with atime
dimension iftemporal=True
.MultiRasterSource
can now work with sub raster sources that return >3D chips.RasterTransformer
s can now work with >3D chips.RasterStats
can now work with >3D chips.AlbumentationDataset
(base class ofGeoDatasets
) can now read from a dataset that returns 4D chips.Visualizer
s can now plot batches of 4D chips.Checklist
needs-backport
label if PR is bug fix that applies to previous minor releaseNotes
Even though RV
GeoDatasets
can now return temporal data, training a model on this kind with the defaultLearner
s will not work because the default models are image-level models. Therefore, the user will need to provide custom models that work with sequential data.Testing Instructions
Closes #1802