open-forest-observatory / tree-detection-framework

BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Determine whether to continue accepting an input image *folder* or switch to input *file* #47

Open youngdjn opened 2 weeks ago

youngdjn commented 2 weeks ago

It is unclear why the TorchGeo RasterDataset constructor expects a path to a folder of images instead of a single image. How does it handle overlapping rasters? For example, does it provide a tile from each raster? Can tiles consist of data from two rasters? Are they merged or blended?

A case where supplying a folder of rasters may be valuable to us is if we have a dataset consisting of multiple flight polygons flown with different batteries that neighbor each other. We might want to process each battery with photogrammetry individually but merge the predictions together.

If we think it makes sense to accept a single raster instead, we could probably tweak the torchgeo code to accept that instead or have a step where the raster is symlinked into a temporary folder that contains only that one file.