Currently, TRAIN_TILES sets the size of sample.txt. This results in unexpected and undesirable behavior. After running remove-bad-images and setting a LABEL_RATIO greater than zero, many or most images are filtered from some datasets. Thus, even though the user may set TRAIN_TILES to 1000, they can end up with only a hundred images. TRAIN_TILES should set the size of train.txt - samples.txt should be every tile at the user's set ZOOM_LEVEL.
Currently, TRAIN_TILES sets the size of sample.txt. This results in unexpected and undesirable behavior. After running remove-bad-images and setting a LABEL_RATIO greater than zero, many or most images are filtered from some datasets. Thus, even though the user may set TRAIN_TILES to 1000, they can end up with only a hundred images. TRAIN_TILES should set the size of train.txt - samples.txt should be every tile at the user's set ZOOM_LEVEL.