How to load a large image and split it into patches as a DataLoader

A few people are working on the same thing here, and the posts include a bit of preliminary code. The hardest problem seems to be selecting random tiles + labels rather than whole images. Figuring out which label goes with which tile can also be a bit tricky; for example when bounding box crosses tile boundaries. My take on the current state of the art is that it’s easiest to stick with doing tiling (and re-assembly) outside of fastai…though it sure would be nice if someone figures out how to incorporate it.
In addition, this library should be handy for bounding box problems.

1 Like