SonwYang / SLP-cropland-parcel-extraction

cropland-parcel extraction
34 stars 6 forks source link

Merging predictions is not working #8

Closed jorgelerre closed 1 month ago

jorgelerre commented 1 month ago

Hello, SonwYang.

I'm trying to use your model with the following image: image

However, the output for the edge detection is this: image

I saw that the prediction is generated by merging some modifications of the image (flipping, using mirror padding, etc.), done in input_and_output function. I will try to fix it by myself, but it feels pretty strange that it worked for you properly. May I be doing something wrong?

SonwYang commented 1 month ago

@jorgelerre Is this model params trained form your datatset or mine?

SonwYang commented 1 month ago

If you want to get good results, you must train your model based your dataset. Mine model params is trained based on sentinel-2 image.

jorgelerre commented 1 month ago

@SonwYang I'm using your weights to run the model. However, I took the image from your drive (in the polygonize zip you have some patches, the one I tried was temp_pic/0_0.png), so I suppose it was extracted from Sentinel-2 too.

SonwYang commented 1 month ago

No, this image is not sentinel-2. Actually, this is china statellite image.

SonwYang commented 1 month ago

You can use SAM(segment anything model) to get zero-shot result. My method is not zero-shot.