diff --git a/label_maker/label.py b/label_maker/label.py index e59130e..a6e30f6 100644 --- a/label_maker/label.py +++ b/label_maker/label.py @@ -38,20 +38,22 @@ def make_labels(dest_folder, zoom, country, classes, ml_type, bounding_box, spar Folder to save labels and example tiles into zoom: int The zoom level to create tiles at + country: str + The OSM QA Tile extract to download. The value should be a country string matching a value found in + `label_maker/countries.txt` classes: list A list of classes for machine learning training. Each class is defined as a dict with two required properties: - name: class name - filter: A Mapbox GL Filter. See the README for more details - imagery: str - Imagery template to download satellite images from. - Ex: http://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=ACCESS_TOKEN ml_type: str Defines the type of machine learning. One of "classification", "object-detection", or "segmentation" bounding_box: list The bounding box to create images from. This should be given in the form: `[xmin, ymin, xmax, ymax]` as longitude and latitude values between `[-180, 180]` and `[-90, 90]` respectively + sparse: boolean + Limit the total background tiles to write based on `background_ratio` kwarg. **kwargs: dict Other properties from CLI config passed as keywords to other utility functions """ diff --git a/label_maker/package.py b/label_maker/package.py index 5be29d2..ecfa085 100644 --- a/label_maker/package.py +++ b/label_maker/package.py @@ -25,7 +25,9 @@ def package_directory(dest_folder, classes, imagery, ml_type, seed=False, train_ Ex: http://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=ACCESS_TOKEN ml_type: str Defines the type of machine learning. One of "classification", "object-detection", or "segmentation" - train_percent: float + seed: int + Random generator seed. Optional, use to make results reproducable. + train_size: float Portion of the data to use in training, the remainder is used as test data (default 0.8) **kwargs: dict Other properties from CLI config passed as keywords to other utility functions