How to generate geotif labels from a image with a trained model? #1470
-
Hi there! I'm working on a Kaggle notebook with a custom dataset based on NAIP images and Chesapeake labels. I want to perform a segmentation task. Right now, I'm able to train with one GPU. How can I, from this trained model, generate geotif labels from a image? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 22 replies
-
@adriantre is working on a way to automatically do this in SemanticSegmentationTask in #1407. If you just want a PNG, it's really easy to do. If you want a GeoTIFF, we have a little bit of work required to store the CRS/transform needed to save geospatial metadata. You can also do this outside of Lightning by loading the model and data loader and iterating over inputs, making predictions, and saving to disk using the same rasterio profile. |
Beta Was this translation helpful? Give feedback.
I know, but when you do:
I'm pretttty sure the images are being divided by 255
and when you do:
I'm pretty sure the images are not being divided by 255.