Caleb Robinson
Caleb Robinson
The previous ~4~ 5 commits clean up how our DataModules pre-process image inputs. Now, each DataModule has a `preprocess(self, sample)` method that performs the image preprocessing and doesn't break if...
Can I pull these commits out somehow?
Cool, done, and I reset this branch back to ashnair's last commit.
I may have fixed the mypy error. @adamjstewart can you give this another pass as it has been a minute?
Thanks a ton for the bug report @remtav! Here's a notebook that gives a self-contained example of: - running a model on a RasterDataset made up of a single tile...
Great questions! 1. Agree with Adam 2. I've been raising a ValueError when the RGB bands aren't present (https://github.com/microsoft/torchgeo/blob/main/torchgeo/datasets/seco.py#L260, https://github.com/microsoft/torchgeo/blob/plotting/torchgeo/datasets/benin_cashews.py#L440). I wanted the plot methods to be an easy way...
1. I like list or tuple of string band names 2. Great! I think both of these can be done at the same time
Why not? E.g. experiments that compare how multispectral information compare to only rgb information on benchmark datasets are quite interesting, I think.
@bw4sz you can run ``` black . isort . ``` and they will fix some of the things that the checks are angry about. See https://torchgeo.readthedocs.io/en/latest/user/contributing.html#linters for more details and...
hey @bw4sz, did you ever put this on Zenodo? If so, I have some spare cycles and can finish this up!