You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.rst
+14-23
Original file line number
Diff line number
Diff line change
@@ -26,26 +26,24 @@ Standard pip install
26
26
27
27
Configuration
28
28
=============
29
-
Before you can use Label Maker, you must specify inputs to the data-creation process within ``config.json`` file. Below is a simple example. To see the complete list of parameters and options for imagery access, check out the XXX page.
29
+
Before you can use Label Maker, you must specify inputs to the data-creation process within ``config.json`` file. Below is a simple example. To see the complete list of parameters and options for imagery access, check out the `parameters page<parameters.html>`_.
TODO: Okay to separate config options like this? See Sphinx's RST list options as there are some recommendations
48
-
TODO: Add page with full parameter list
46
+
Before using this configuration, make sure to replace ``ACCESS_TOKEN`` with your `Mapbox Access Token <https://www.mapbox.com/help/how-access-tokens-work/>`_
49
47
50
48
Command line interface (CLI)
51
49
============================
@@ -70,7 +68,8 @@ CLI Step 2: labels
70
68
Retiles the OSM data to the desired zoom level, creates label data (``labels.npz``), calculates class statistics, creates visual label files (either GeoJSON or PNG files depending upon ``ml_type``). Requires the mbtiles file from the `label-maker download` step.
71
69
72
70
Accepts one additional flag:
73
-
1. ``-s`` or ``--sparse``: *boolean* specifying if class of interest are sparse. If ``True``, only save labels for up to ``n`` background tiles, where ``n`` is equal to ``background_ratio`` times the number of tiles with a class label. Defaults to ``False``.
71
+
72
+
- ``-s`` or ``--sparse``: *boolean* specifying if class of interest are sparse. If ``True``, only save labels for up to ``n`` background tiles, where ``n`` is equal to ``background_ratio`` times the number of tiles with a class label. Defaults to ``False``.
74
73
75
74
.. code-block:: bash
76
75
@@ -81,25 +80,21 @@ Accepts one additional flag:
81
80
Total tiles: 1189
82
81
Write out labels to data/labels.npz
83
82
84
-
TODO: Is bool 0/1 or True/False? Or does it matter?
85
-
TODO: Is requirement correct? Should we just move these requirements to "Note" boxes?
86
-
87
-
CLI Step 3: preview
88
-
^^^^^^^^^^^^^^^^^^^
83
+
CLI Step 3: preview (optional)
84
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89
85
90
-
Downloads example overhead images for each class. Requires the labels.npz file from the previous step. Accepts an additional flag:
86
+
Downloads example overhead images for each class. Requires the ``labels.npz`` file from the previous step.
91
87
92
88
Accepts one additional flag:
93
-
1. ``-n`` or ``--number``: *integer* specifying number of examples images to create per class. Defaults to ``5``.
89
+
90
+
- ``-n`` or ``--number``: *integer* specifying number of examples images to create per class. Defaults to ``5``.
94
91
95
92
.. code-block:: bash
96
93
97
94
$ label-maker preview -n 10
98
95
Writing example images to data/examples
99
96
Downloading 10 tiles for class Residential
100
97
101
-
TODO: Requirements?
102
-
103
98
CLI Step 4: images
104
99
^^^^^^^^^^^^^^^^^^
105
100
@@ -110,11 +105,9 @@ Downloads all imagery tiles needed to create the training data. Requires the ``l
110
105
$ label-maker images
111
106
Downloading 1189 tiles to data/tiles
112
107
113
-
TODO: Requirements?
114
-
115
108
CLI Step 5: package
116
109
^^^^^^^^^^^^^^^^^^^
117
-
Bundles the images and OSM labels to create a final ``data.npz`` file. Requires the ``labels.npz`` file from the ``label-maker labels`` step and downloaded image tiles from the ``label-maker images`` step.
110
+
Bundles the images and OSM labels to create a final ``data.npz`` file. Requires the ``labels.npz`` file from the ``label-maker labels`` step and downloaded image tiles from the ``label-maker images`` step.
118
111
119
112
.. code-block:: bash
120
113
@@ -123,7 +116,7 @@ Bundles the images and OSM labels to create a final ``data.npz`` file. Requires
123
116
124
117
Using the packaged data
125
118
=======================
126
-
Once you have a create ``data.npz`` file using the above commands, you can use ```numpy.load`` <https://docs.scipy.org/doc/numpy/reference/generated/numpy.load.html>`_ to load it. For example, you can supply the created data to a `Keras <https://keras.io/>`_ ``Model`` as follows:
119
+
Once you have a create ``data.npz`` file using the above commands, you can use `numpy.load <https://docs.scipy.org/doc/numpy/reference/generated/numpy.load.html>`_ to load it. For example, you can supply the created data to a `Keras <https://keras.io/>`_ ``Model`` as follows:
127
120
128
121
.. code-block:: bash
129
122
@@ -145,8 +138,6 @@ Once you have a create ``data.npz`` file using the above commands, you can use `
145
138
146
139
For more detailed walkthroughs, see the `examples page <https://github.com/developmentseed/label-maker/blob/master/examples>`_.
0 commit comments