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
## Spacenet Vegas Road and Building Semantic Segmentation
194
+
## Spacenet Vegas Roads and Buildings: All Tasks <aname="spacenet-vegas"></a>
195
195
196
-
This example runs semantic segmentation on the [Spacenet Vegas](https://spacenetchallenge.github.io/AOI_Lists/AOI_2_Vegas.html) dataset with the option to choose either roads or buildings.
196
+
This example shows how to run an experiment on the [Spacenet Vegas](https://spacenetchallenge.github.io/AOI_Lists/AOI_2_Vegas.html) dataset with the option to choose either roads or buildings, and use any task.
197
197
198
198
### (Optional) Step 1: Download data
199
199
@@ -203,28 +203,34 @@ You can run this example both remotely and locally without having to manually do
203
203
204
204
To run a small experiment locally to test that things are setup properly, invoke
205
205
```
206
-
rastervision run local -e spacenet.semantic_segmentation \
206
+
rastervision run local -e spacenet.vegas \
207
207
-a test True \
208
-
-a root_uri ${ROOT_URI} \
209
-
-a target ${TARGET}
208
+
-a root_uri <root_uri> \
209
+
-a target <target> \
210
+
-a task_type <task_type>
210
211
```
211
-
where `${ROOT_URI}` is your local RV root, for instance `/opt/data/spacenet-vegas`, and
212
-
`${TARGET}` is either `roads` or `buildings`. If you would like to use data stored locally during Step 1, add the `-a use_remote_data False` flag.
212
+
where:
213
+
*`<root_uri>` is your local RV root, for instance `/opt/data/spacenet-vegas`
214
+
*`<target>` can be either `roads` or `buildings`.
215
+
*`<task_type>` can be `semantic_segmentation`, `object_detection`, or `chip_classification`. However, only `semantic_segmentation` currently works with `roads`.
216
+
217
+
If you would like to use data stored locally during Step 1, add the `-a use_remote_data False` flag.
213
218
214
219
To run a full experiment remotely, invoke
215
220
```
216
-
rastervision run aws_batch -e spacenet.semantic_segmentation \
217
-
-a test False \
218
-
-a root_uri ${ROOT_URI} \
219
-
-a target ${TARGET}
221
+
rastervision run aws_batch -e spacenet.vegas \
222
+
-a test True \
223
+
-a root_uri <root_uri> \
224
+
-a target <target> \
225
+
-a task_type <task_type>
220
226
```
221
-
with a remote `${ROOT_URI}`.
227
+
with a remote `<root_uri>`.
222
228
223
-
The experiment config is set to train a Mobilenet for 100k steps which takes about 6hrs on a P3 instance. If you modify the config to use Inception for 150k steps (see comment in code), it takes about 24 hours to train on a P3.
229
+
Running semantic segmentation on roads trains a Mobilenet for 100k steps which takes about 6hrs on a P3 instance.
224
230
225
231
### Step 3: View results
226
232
227
-
After training the Inception model on the Roads dataset, using the QGIS plugin, you should see predictions and an eval like the following.
233
+
After training a semantic segmentation model on roads, using the QGIS plugin, you should see predictions and an eval similar to the following.
228
234
229
235

0 commit comments