Open rrsc1234 opened 3 years ago
I got the same issue.... Did u get any solution for that?
@rrsc1234 @jotafmr This can happen when your classes are highly imbalanced. In this case, one of the classes has only about 0.2% samples of the other class, which the model will fail to learn. Try balancing the classes, see example in this article. You may need to downsample majority class and upsample (by duplicating) minority class. Let me know here how it goes.
Hi Pratyush Tripathy. By using your code as reference I am trying to do citrus crop mapping. In the following link I have attached my input files along with the predicted output.
"https://drive.google.com/file/d/1C0TCQkK-aqebJrhF_AO9jSSgmKI3fiMX/view?usp=sharing"
After running your complete code, I got following as output before going to "model.predict("Validation Image.tif")".
As you can see all the pixels in the predicted image is classified as true positives and false negatives. Even though in the training class image there are no. of pixels with both classes viz. 0 & 1. Can you let me know what is the issue.