Saving predictions correctly #1810
-
I was able to make my first complete semantic segmentation pipeline using RV as a module. I made the code on this Kaggle notebook with this dataset. The predictions are ok for the validation dataset (considering the number os epochs used), but when I use my learner to generate de predictions for my prediction dataset:
The results are not good. What am I doing wrong? Here are the predictions for my validation dataset: And here are the geotif file saved with:
On the left we have the labels for the window displayed and on the right we have the same window on the geotiff saved. What can be the problem here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I'm not sure what I'm looking at here. As a sanity check, you can try predicting on the an image from the training or validation set. You can also inspect the predictions using |
Beta Was this translation helpful? Give feedback.
-
Thanks! Now, I realize that. |
Beta Was this translation helpful? Give feedback.
It seems like you're re-instantiating the
Learner
just before you make predictions. That means you're essentially predicting with a randomly initialized model.Learner
before making predictions if you already have it in memory.Learner
from a model-bundle, useLearner.from_model_bundle()
. See this or this.