Created
May 5, 2022 21:41
-
-
Save adamjstewart/6416f0a80bef9d152778e94afb3e3141 to your computer and use it in GitHub Desktop.
Creating a geospatial sampler with TorchGeo
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
sampler = RandomGeoSampler(dataset, size=256, length=10000) | |
dataloader = DataLoader(dataset, batch_size=128, sampler=sampler, collate_fn=stack_samples) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment