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
7e67dbbc
Commit
7e67dbbc
authored
Dec 17, 2019
by
Yeqing Li
Committed by
A. Unique TensorFlower
Dec 17, 2019
Browse files
Internal change
PiperOrigin-RevId: 286061591
parent
68146271
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
official/vision/detection/configs/retinanet_config.py
official/vision/detection/configs/retinanet_config.py
+1
-0
official/vision/detection/dataloader/input_reader.py
official/vision/detection/dataloader/input_reader.py
+3
-1
No files found.
official/vision/detection/configs/retinanet_config.py
View file @
7e67dbbc
...
@@ -32,6 +32,7 @@ RETINANET_CFG = {
...
@@ -32,6 +32,7 @@ RETINANET_CFG = {
'type'
:
'retinanet'
,
'type'
:
'retinanet'
,
'model_dir'
:
''
,
'model_dir'
:
''
,
'use_tpu'
:
True
,
'use_tpu'
:
True
,
'strategy_type'
:
'tpu'
,
'train'
:
{
'train'
:
{
'batch_size'
:
64
,
'batch_size'
:
64
,
'iterations_per_loop'
:
500
,
'iterations_per_loop'
:
500
,
...
...
official/vision/detection/dataloader/input_reader.py
View file @
7e67dbbc
...
@@ -94,7 +94,9 @@ class InputFn(object):
...
@@ -94,7 +94,9 @@ class InputFn(object):
dataset
=
dataset
.
cache
()
dataset
=
dataset
.
cache
()
if
self
.
_is_training
:
if
self
.
_is_training
:
dataset
=
dataset
.
shuffle
(
64
)
# Large shuffle size is critical for 2vm input pipeline. Can use small
# value (e.g. 64) for 1vm.
dataset
=
dataset
.
shuffle
(
1000
)
if
self
.
_num_examples
>
0
:
if
self
.
_num_examples
>
0
:
dataset
=
dataset
.
take
(
self
.
_num_examples
)
dataset
=
dataset
.
take
(
self
.
_num_examples
)
...
...
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