Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
c0b5d11d
Commit
c0b5d11d
authored
Jul 07, 2017
by
derekjchow
Committed by
GitHub
Jul 07, 2017
Browse files
Merge pull request #1893 from derekjchow/master
Update directories in running_pets.md
parents
fdb70c22
50e427ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
14 deletions
+20
-14
object_detection/g3doc/running_pets.md
object_detection/g3doc/running_pets.md
+20
-14
No files found.
object_detection/g3doc/running_pets.md
View file @
c0b5d11d
...
...
@@ -51,29 +51,35 @@ dataset for Oxford-IIIT Pets lives
[
here
](
http://www.robots.ox.ac.uk/~vgg/data/pets/
)
. You will need to download
both the image dataset
[
`images.tar.gz`
](
http://www.robots.ox.ac.uk/~vgg/data/pets/data/images.tar.gz
)
and the groundtruth data
[
`annotations.tar.gz`
](
http://www.robots.ox.ac.uk/~vgg/data/pets/data/annotations.tar.gz
)
to the
`tensorflow/models`
directory. This may take some time. After downloading
the tarballs, your
`object_detection`
directory should appear as follows:
to the
`tensorflow/models`
directory and unzip them. This may take some time.
```
bash
# From tensorflow/models/
wget http://www.robots.ox.ac.uk/~vgg/data/pets/data/images.tar.gz
wget http://www.robots.ox.ac.uk/~vgg/data/pets/data/annotations.tar.gz
tar
-xvf
images.tar.gz
tar
-xvf
annotations.tar.gz
```
After downloading the tarballs, your
`tensorflow/models`
directory should appear
as follows:
```
lang-none
- images.tar.gz
- annotations.tar.gz
+ images/
+ annotations/
+ object_detection/
+ data/
- images.tar.gz
- annotations.tar.gz
- create_pet_tf_record.py
... other files and directories
... other files and directories
```
The Tensorflow Object Detection API expects data to be in the TFRecord format,
so we'll now run the
`create_pet_tf_record`
script to convert from the raw
Oxford-IIIT Pet dataset into TFRecords. Run the following commands from the
`
object_detection
`
directory:
`
tensorflow/models
`
directory:
```
bash
# From tensorflow/models/
wget http://www.robots.ox.ac.uk/~vgg/data/pets/data/images.tar.gz
wget http://www.robots.ox.ac.uk/~vgg/data/pets/data/annotations.tar.gz
tar
-xvf
annotations.tar.gz
tar
-xvf
images.tar.gz
python object_detection/create_pet_tf_record.py
\
--label_map_path
=
object_detection/data/pet_label_map.pbtxt
\
--data_dir
=
`
pwd
`
\
...
...
@@ -84,7 +90,7 @@ Note: It is normal to see some warnings when running this script. You may ignore
them.
Two TFRecord files named
`pet_train.record`
and
`pet_val.record`
should be generated
in the
`
object_detection
`
directory.
in the
`
tensorflow/models
`
directory.
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
...
...
@@ -279,7 +285,7 @@ three files:
*
`model.ckpt-${CHECKPOINT_NUMBER}.meta`
After you've identified a candidate checkpoint to export, run the following
command from
`tensorflow/models
/object_detection
`
:
command from
`tensorflow/models`
:
```
bash
# From tensorflow/models
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment