mapbox / robosat

Semantic segmentation on aerial and satellite imagery. Extracts features such as: buildings, parking lots, roads, water, clouds
MIT License
2.02k stars 382 forks source link

Splits docker build into cache-able layers for faster iteration #152

Closed daniel-j-h closed 5 years ago

daniel-j-h commented 5 years ago

In https://github.com/mapbox/robosat/pull/151 we pre-fetched the model's weights into the docker image which makes iterating on training faster. In contrast this changeset is about improving on iteration speed for code development.

Because we are now caching layers and carefully ordered them by how often they will change iterating on code is down from tens of minutes to a few seconds copying the new source code into the docker image.

:racehorse: :rocket:

cc @jacquestardie please merge; this works. (please merge with the rebase merge option to get a fast-forward merge keeping a linear git history)