question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation to use torchgeo to create tiles from large rasters

See original GitHub issue

To the best of my knowledge, I am unable to find documentation in torchgeo that describes how I can sample N x N tiles from a custom Dataset which loads full rasters from the image.

This sampling workflow would ideally pad my returned raster such that it results in evenly sized tiles.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
isaaccorleycommented, Dec 14, 2021

@RitwikGupta Regarding your gist example, can you try calling super() at the top of your constructor and not set any of the attributes. I think your issue is coming from you setting self.crs before superclassing the parent classes. In other words, we have a setter method for crs which expects a _crs attribute to exist but this is not created until the RasterDataset constructor is called via super().

0reactions
adamjstewartcommented, Mar 16, 2022

Closing since #283 was merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started — torchgeo 0.4.0.dev0 documentation
For this tutorial, we'll be using imagery from the National Agriculture ... First, we manually download a few NAIP tiles and create a...
Read more >
TorchGeo of PyTorch - E2E Networks
TorchGeo is a Python package that allows users to transparently use heterogenous geospatial data in PyTorch-based deep learning pipelines.
Read more >
TorchGeo: Deep Learning With Geospatial Data - arXiv
We use TorchGeo to create reproducible benchmark results on existing datasets and benchmark our proposed method for preprocessing geospatial im-.
Read more >
Introduction to tiler - Docs
In addition to generating map tiles based on a common raster layer source, ... If you are attempting to make thousands of tiles...
Read more >
TORCHGEO: DEEP LEARNING WITH GEOSPATIAL DATA
We use TorchGeo to create reproducible benchmark results on existing datasets ... At the same time, advancements in machine learning (ML), larger.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found