Edge case: RandomWindowGeoDataset
can sometimes cause the training to end prematurely
#1429
Labels
RandomWindowGeoDataset
can sometimes cause the training to end prematurely
#1429
🐛 Bug
See the following discussion on Gitter: https://gitter.im/azavea/raster-vision?at=6298bff6ef00bd1dc60fc7ee
Whenever a
RandomWindowGeoDataset
for a scene fails to find an eligible chip inmax_sample_attempts
attempts, it throws aStopIteration
error and causes the training to end, ignoring any other datasets that might still not be exhausted. This causes the training epoch to end prematurely.To Reproduce
Steps to reproduce the behavior:
GeoDataConfig(methods=GeoDataWindowMethod.random)
for both.train
command.The training should end immediately even though there are several unused chips in the second scene.
Expected behavior
The training should not end until all eligible chips have been used.
Environment
Additional context
It is possible that using an
IterableDataset
might be more appropriate forRandomWindowGeoDataset
.The text was updated successfully, but these errors were encountered: