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
3cb798fe
Unverified
Commit
3cb798fe
authored
Jan 19, 2018
by
Chris Shallue
Committed by
GitHub
Jan 19, 2018
Browse files
Merge pull request #3063 from DecentGradient/readme
readme fixes
parents
f729a8c8
95b0b036
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
research/im2txt/README.md
research/im2txt/README.md
+5
-5
No files found.
research/im2txt/README.md
View file @
3cb798fe
...
@@ -119,8 +119,8 @@ First ensure that you have installed the following required packages:
...
@@ -119,8 +119,8 @@ First ensure that you have installed the following required packages:
*
**NumPy**
(
[
instructions
](
http://www.scipy.org/install.html
)
)
*
**NumPy**
(
[
instructions
](
http://www.scipy.org/install.html
)
)
*
**Natural Language Toolkit (NLTK)**
:
*
**Natural Language Toolkit (NLTK)**
:
*
First install NLTK (
[
instructions
](
http://www.nltk.org/install.html
)
)
*
First install NLTK (
[
instructions
](
http://www.nltk.org/install.html
)
)
*
Then install the NLTK data (
[
instructions
](
http://www.nltk.org/data.html
)
)
*
Then install the NLTK data
package "punkt"
(
[
instructions
](
http://www.nltk.org/data.html
)
)
*
**Unzip**
### Prepare the Training Data
### Prepare the Training Data
To train the model you will need to provide training data in native TFRecord
To train the model you will need to provide training data in native TFRecord
...
@@ -145,7 +145,7 @@ available space for storing the downloaded and processed data.
...
@@ -145,7 +145,7 @@ available space for storing the downloaded and processed data.
MSCOCO_DIR
=
"
${
HOME
}
/im2txt/data/mscoco"
MSCOCO_DIR
=
"
${
HOME
}
/im2txt/data/mscoco"
# Build the preprocessing script.
# Build the preprocessing script.
cd
tensorflow-models
/im2txt
cd
research
/im2txt
bazel build //im2txt:download_and_preprocess_mscoco
bazel build //im2txt:download_and_preprocess_mscoco
# Run the preprocessing script.
# Run the preprocessing script.
...
@@ -212,7 +212,7 @@ INCEPTION_CHECKPOINT="${HOME}/im2txt/data/inception_v3.ckpt"
...
@@ -212,7 +212,7 @@ INCEPTION_CHECKPOINT="${HOME}/im2txt/data/inception_v3.ckpt"
MODEL_DIR
=
"
${
HOME
}
/im2txt/model"
MODEL_DIR
=
"
${
HOME
}
/im2txt/model"
# Build the model.
# Build the model.
cd
tensorflow-models
/im2txt
cd
research
/im2txt
bazel build
-c
opt //im2txt/...
bazel build
-c
opt //im2txt/...
# Run the training script.
# Run the training script.
...
@@ -306,7 +306,7 @@ VOCAB_FILE="${HOME}/im2txt/data/mscoco/word_counts.txt"
...
@@ -306,7 +306,7 @@ VOCAB_FILE="${HOME}/im2txt/data/mscoco/word_counts.txt"
IMAGE_FILE
=
"
${
HOME
}
/im2txt/data/mscoco/raw-data/val2014/COCO_val2014_000000224477.jpg"
IMAGE_FILE
=
"
${
HOME
}
/im2txt/data/mscoco/raw-data/val2014/COCO_val2014_000000224477.jpg"
# Build the inference binary.
# Build the inference binary.
cd
tensorflow-models
/im2txt
cd
research
/im2txt
bazel build
-c
opt //im2txt:run_inference
bazel build
-c
opt //im2txt:run_inference
# Ignore GPU devices (only necessary if your GPU is currently memory
# Ignore GPU devices (only necessary if your GPU is currently memory
...
...
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