Semantic segmentation test sites that are all one category #1855
-
I ran into this issue accidentally. When constructing test sites, I accidentally configured one of the test sites to have equivalent polygons in as both the aoi file and the label mask file. This caused my code to error out. I fixed this issue so I have the correct label file, but I figured it should be possible to have test sites that are entirely covered by one category. I've tried a few times to create test sites that are completely covered by one category, and each time I've gotten runtime errors. I'm wondering how to do this correctly, or if this functionality is not supported? When there are two separate vector files that store equivalent polygons used as the label mask and the aoi respectively, I get this error. I have ensured that both files are in the appropriate crs.
When I use the same file for the aoi and the label mask, I get the following error:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Additional info I forgot: I'm running rastervision 0.20 with docker tag dc23f1f. |
Beta Was this translation helpful? Give feedback.
-
I think the errors might be unrelated to the AOI and labels file being the same. The first error seems to suggest that there's something wrong with the Either way, I think RV should do a better job of handling these situations. Can you share a sample GeoJSON file that runs into these errors? |
Beta Was this translation helpful? Give feedback.
Okay, I think I have figured it out:
Your GeoJSON file has two "issues":
ValueError: The truth value of a Series is ambiguous
error.LinearRing
error. Based on the stack trace, that GeoJSON has geometries that have "holes". This is not really a problem in itself, but you are running into the error because of a bug in RV. That part of RV is…