Skip to content

Incompatible image size with RandomGeoSampler #1773

Answered by calebrob6
hfangcat asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @hfangcat, this issue is related to #278 and #409. The problem is that the ChesapeakeCVPR dataset is made up of large tiles from several different CRSs. The approach of RasterDataset is to choose some single CRS and reproject all data into that CRS, and have the samplers produce bboxes in that CRS -- resampling on-the-fly to ensure that everything is pixel-aligned. This is good for cases where your data is not pixel-aligned beforehand, but produces unnecessary (and significant) slowdowns when your data is already pixel-aligned. As ChesapeakeCVPR data is already pixel-aligned, the compromise I take is to resample the bboxes to each tiles local CRS (which is fast) then mask from each la…

Replies: 3 comments 10 replies

Comment options

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

Comment options

You must be logged in to vote
4 replies
@calebrob6
Comment options

@calebrob6
Comment options

@hfangcat
Comment options

@adamjstewart
Comment options

Answer selected by hfangcat
Comment options

You must be logged in to vote
5 replies
@adamjstewart
Comment options

@hfangcat
Comment options

@adamjstewart
Comment options

@hfangcat
Comment options

@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