Skip to content

How the sample works? #659

Answered by adamjstewart
dfguerrerom asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dfguerrerom, thanks for the question. I think it may be helpful to read our blog or paper if you want a better idea of the design of the library.

TL;DR: In TorchGeo, there are two important base classes to know about:

  • GeoDataset: for datasets with geospatial information, indexed using spatiotemporal bounding boxes, great for uncurated/raw data, allows you to combine multiple data sources based on geographic metadata, requires a GeoSampler to use.
  • VisionDataset: for datasets without geospatial information, indexed by integer like in torchvision, great for curated datasets, can't combine with other datasets though, no sampler required.

From what you've described, it sounds like Vision…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@dfguerrerom
Comment options

@adamjstewart
Comment options

Answer selected by dfguerrerom
Comment options

You must be logged in to vote
1 reply
@adamjstewart
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
datasets Geospatial or benchmark datasets
3 participants