GridGeoSampler example #1629
Replies: 3 comments 2 replies
-
FWIW, happens in |
Beta Was this translation helpful? Give feedback.
-
GridGeoSampler will not give you more samples. In fact, it will give you fewer samples. You should use RandomBatchGeoSampler during training and GridGeoSampler during evaluation.
I don't know what
We have examples in several builtin DataModules, including Chesapeake, L7 Irish, L8 Biome, and NAIP. But I agree that a tutorial example would be nice. We're planning on expanding our tutorials in the near future. |
Beta Was this translation helpful? Give feedback.
-
that's much appreciated. will ping you on the slack channel. thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi, this might be related to a previous post...
due to constraints in the number and sizes of labeled data, we are trying to use GridGeoSampler instead of RandomBatchGeoSampler.
tried to use patch size 32 and replace RandomBatchGeoSampler in the following SegmentationDataModule code:
things start to work e.g., sanity checks pass incl. the datamodule plot() being called with samples. but then at the first batch getting:
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 1024, 1, 1])
would be happy for a clarification or suggestion.
an example of GridGeoSampler, not as a standalone example which we already have, but in a training example, would be great.
thanks!
Beta Was this translation helpful? Give feedback.
All reactions