How the sample works? #659
-
I'm trying to understand how the library works and I'm stuck in a step. There is a generic class called I want to use this package to train a multi-label classification model, to do so, I plan to create a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
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:
From what you've described, it sounds like VisionDataset may be what you want. If you already have a curated dataset with both small image patches and labels, then there's no reason to use a GeoDataset. Note that RasterDataset is a subclass of GeoDataset that looks for raster files in a directory. P.S. We're planning on renaming VisionDataset to NonGeoDataset in the near future, so the docs may change all of a sudden. |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue. I have been trying torchgeo to see if it fits my needs, i am currently training a binary image classification model and i have a raster datasets. i want to find a way to get my classes using the RasterDataset, the same way for example a from torchvision.datasets import ImageFolder would do. but i do not find any implementation for image classification in the torchgeo library, and no similar case in torchgeo.datasets |
Beta Was this translation helpful? Give feedback.
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:
From what you've described, it sounds like Vision…