Skip to content

Commit 7ffee3e

Browse files
authored
Merge pull request #61 from jreiberkyle/doc-fix
update function argument documentation
2 parents 57e4f73 + 87c2d10 commit 7ffee3e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

label_maker/label.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,22 @@ def make_labels(dest_folder, zoom, country, classes, ml_type, bounding_box, spar
3838
Folder to save labels and example tiles into
3939
zoom: int
4040
The zoom level to create tiles at
41+
country: str
42+
The OSM QA Tile extract to download. The value should be a country string matching a value found in
43+
`label_maker/countries.txt`
4144
classes: list
4245
A list of classes for machine learning training. Each class is defined as a dict
4346
with two required properties:
4447
- name: class name
4548
- filter: A Mapbox GL Filter.
4649
See the README for more details
47-
imagery: str
48-
Imagery template to download satellite images from.
49-
Ex: http://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=ACCESS_TOKEN
5050
ml_type: str
5151
Defines the type of machine learning. One of "classification", "object-detection", or "segmentation"
5252
bounding_box: list
5353
The bounding box to create images from. This should be given in the form: `[xmin, ymin, xmax, ymax]`
5454
as longitude and latitude values between `[-180, 180]` and `[-90, 90]` respectively
55+
sparse: boolean
56+
Limit the total background tiles to write based on `background_ratio` kwarg.
5557
**kwargs: dict
5658
Other properties from CLI config passed as keywords to other utility functions
5759
"""

label_maker/package.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def package_directory(dest_folder, classes, imagery, ml_type, seed=False, train_
2525
Ex: http://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=ACCESS_TOKEN
2626
ml_type: str
2727
Defines the type of machine learning. One of "classification", "object-detection", or "segmentation"
28-
train_percent: float
28+
seed: int
29+
Random generator seed. Optional, use to make results reproducable.
30+
train_size: float
2931
Portion of the data to use in training, the remainder is used as test data (default 0.8)
3032
**kwargs: dict
3133
Other properties from CLI config passed as keywords to other utility functions

0 commit comments

Comments
 (0)