Commit ed65b632 authored by derekjchow's avatar derekjchow Committed by GitHub
Browse files

Merge pull request #2052 from derekjchow/docs

Update object_detection docs.
parents 12a9dce2 c0cf58e6
...@@ -157,6 +157,6 @@ number of workers, gpu type). ...@@ -157,6 +157,6 @@ number of workers, gpu type).
## Configuring the Evaluator ## Configuring the Evaluator
Currently evaluation is fixed to generating metrics as defined by the PASCAL Currently evaluation is fixed to generating metrics as defined by the PASCAL VOC
VOC challenge. The parameters for `eval_config` are set to reasonable defaults challenge. The parameters for `eval_config` are set to reasonable defaults and
and typically do not need to be configured. typically do not need to be configured.
...@@ -74,6 +74,6 @@ to avoid running this manually, you can add it as a new line to the end of your ...@@ -74,6 +74,6 @@ to avoid running this manually, you can add it as a new line to the end of your
You can test that you have correctly installed the Tensorflow Object Detection\ You can test that you have correctly installed the Tensorflow Object Detection\
API by running the following command: API by running the following command:
``` bash ```bash
python object_detection/builders/model_builder_test.py python object_detection/builders/model_builder_test.py
``` ```
...@@ -34,10 +34,9 @@ The label map for the PASCAL VOC data set can be found at ...@@ -34,10 +34,9 @@ The label map for the PASCAL VOC data set can be found at
## Generating the Oxford-IIIT Pet TFRecord files. ## Generating the Oxford-IIIT Pet TFRecord files.
The Oxford-IIIT Pet data set is located on The Oxford-IIIT Pet data set is located
[their website](http://www.robots.ox.ac.uk/~vgg/data/pets/). [here](http://www.robots.ox.ac.uk/~vgg/data/pets/). To download, extract and
To download, extract and convert it to TFRecrods, run the following commands convert it to TFRecrods, run the following commands below:
below:
```bash ```bash
# From tensorflow/models # From tensorflow/models
......
...@@ -77,5 +77,5 @@ tensorboard --logdir=${PATH_TO_MODEL_DIRECTORY} ...@@ -77,5 +77,5 @@ tensorboard --logdir=${PATH_TO_MODEL_DIRECTORY}
``` ```
where `${PATH_TO_MODEL_DIRECTORY}` points to the directory that contains the where `${PATH_TO_MODEL_DIRECTORY}` points to the directory that contains the
train and eval directories. Please note it may take Tensorboard a couple train and eval directories. Please note it may take Tensorboard a couple minutes
minutes to populate with data. to populate with data.
...@@ -11,5 +11,5 @@ jupyter notebook ...@@ -11,5 +11,5 @@ jupyter notebook
``` ```
The notebook should open in your favorite web browser. Click the The notebook should open in your favorite web browser. Click the
[`object_detection_tutorial.ipynb`](../object_detection_tutorial.ipynb) link [`object_detection_tutorial.ipynb`](../object_detection_tutorial.ipynb) link to
to open the demo. open the demo.
...@@ -89,8 +89,8 @@ python object_detection/create_pet_tf_record.py \ ...@@ -89,8 +89,8 @@ python object_detection/create_pet_tf_record.py \
Note: It is normal to see some warnings when running this script. You may ignore Note: It is normal to see some warnings when running this script. You may ignore
them. them.
Two TFRecord files named `pet_train.record` and `pet_val.record` should be generated Two TFRecord files named `pet_train.record` and `pet_val.record` should be
in the `tensorflow/models` directory. generated in the `tensorflow/models` directory.
Now that the data has been generated, we'll need to upload it to Google Cloud Now that the data has been generated, we'll need to upload it to Google Cloud
Storage so the data can be accessed by ML Engine. Run the following command to Storage so the data can be accessed by ML Engine. Run the following command to
...@@ -269,7 +269,10 @@ Note: It takes roughly 10 minutes for a job to get started on ML Engine, and ...@@ -269,7 +269,10 @@ Note: It takes roughly 10 minutes for a job to get started on ML Engine, and
roughly an hour for the system to evaluate the validation dataset. It may take roughly an hour for the system to evaluate the validation dataset. It may take
some time to populate the dashboards. If you do not see any entries after half some time to populate the dashboards. If you do not see any entries after half
an hour, check the logs from the [ML Engine an hour, check the logs from the [ML Engine
Dashboard](https://console.cloud.google.com/mlengine/jobs). Dashboard](https://console.cloud.google.com/mlengine/jobs). Note that by default
the training jobs are configured to go for much longer than is necessary for
convergence. To save money, we recommend killing your jobs once you've seen
that they've converged.
## Exporting the Tensorflow Graph ## Exporting the Tensorflow Graph
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment