Closed bkowshik closed 6 years ago
It's the user's responsibility to make sure images and labels are in sync. I think the error is fine here; what we could do is change the wording from input and target to images and masks.
This landed in https://github.com/mapbox/robosat/pull/101.
While downloading tiles for my dataset, there was one tile that could not be downloaded. The
rs download
step logged the same as below, which is helpful to get a sense of how many tiles failed to download and which ones.But, in the
rs rasterize
when there isn't a geojson feature part of a tile, we put in an empty label with all pixels have the value of background. So, what happened is that the number of images was one less than the number of labels. This caused the train script to fail with the following error:The message about different is number of images and labels is helpful. Should it be a warning instead of an error?
https://github.com/mapbox/robosat/blob/6f26d8586f612d144bf06491fecdbc59913bb508/robosat/datasets.py#L58