Example for unchipped images #2163
-
Hi, I'm working with a dataset that consists multiple bands (9) of a single area (8000x16000) from which I'd like to create stacks of smaller chips to train a segmentation model. I'm defining my train, validation and test areas as bounding boxes within this single area. Is there a good way to this, or is there an example dataset/dataloader that I can refer to? I'm currently referring to this discussion, but was wondering if one of the pre-existing datasets tackled something similar. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
What kind of images and masks are you using? I would suggest creating a new |
Beta Was this translation helpful? Give feedback.
-
Hi @adamjstewart ! Thanks for the response - here's a basic code snippet that I've written.
Ok, I think I have this working - is the bare bones definition of the Lastly (sorry for all the questions!) I'm interested in experimenting with withholding certain input layers to see how it impacts model training - is there a suggested way of doing this? |
Beta Was this translation helpful? Give feedback.
-
Hey @adamjstewart - I wanted to make a suggestion about adding a documentation note about regex in the class definition for Rasterdataset. Do you think this would be useful? I was having issues loading the bands of my data correctly, and I tracked it down to my regex expression being incorrect. |
Beta Was this translation helpful? Give feedback.
This depends on what you're trying to do. At the moment, without any glob or regex, this will match all raster files recursively in a directory. Also, without a regex or datetime format, time is ignored and no time-series support will be provided. If you're fine with these conditions, your definitions are probably sufficient.