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
ea97e5c3
Commit
ea97e5c3
authored
Mar 23, 2017
by
Neal Wu
Browse files
Change the train and validation shards to the correct amounts
parent
8b571b3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
inception/README.md
inception/README.md
+9
-9
No files found.
inception/README.md
View file @
ea97e5c3
...
...
@@ -668,8 +668,8 @@ bazel-bin/inception/build_image_data \
--validation_directory
=
"
${
VALIDATION_DIR
}
"
\
--output_directory
=
"
${
OUTPUT_DIRECTORY
}
"
\
--labels_file
=
"
${
LABELS_FILE
}
"
\
--train_shards
=
24
\
--validation_shards
=
8
\
--train_shards
=
128
\
--validation_shards
=
24
\
--num_threads
=
8
```
...
...
@@ -694,20 +694,20 @@ class.
After running this script produces files that look like the following:
```
shell
$TRAIN_DIR
/train-00000-of-00
024
$TRAIN_DIR
/train-00001-of-00
024
$TRAIN_DIR
/train-00000-of-00
128
$TRAIN_DIR
/train-00001-of-00
128
...
$TRAIN_DIR
/train-00
023
-of-00
024
$TRAIN_DIR
/train-00
127
-of-00
128
and
$VALIDATION_DIR
/validation-00000-of-000
08
$VALIDATION_DIR
/validation-00001-of-000
08
$VALIDATION_DIR
/validation-00000-of-000
24
$VALIDATION_DIR
/validation-00001-of-000
24
...
$VALIDATION_DIR
/validation-000
07
-of-000
08
$VALIDATION_DIR
/validation-000
23
-of-000
24
```
where
24
and
8
are the number of shards specified for each dataset,
where
128
and
24
are the number of shards specified for each dataset,
respectively. Generally speaking, we aim for selecting the number of shards such
that roughly 1024 images reside in each shard. Once this data set is built, you
are ready to train or fine-tune an Inception model on this data set.
...
...
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