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
bda5126e
Commit
bda5126e
authored
Mar 21, 2018
by
Zhichao Lu
Committed by
pkulzc
Apr 02, 2018
Browse files
Minor change to remove redundant check for finetune_checkpoint_type.
PiperOrigin-RevId: 189997094
parent
2672cdbd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
research/object_detection/model.py
research/object_detection/model.py
+0
-8
No files found.
research/object_detection/model.py
View file @
bda5126e
...
...
@@ -250,14 +250,6 @@ def create_model_fn(detection_model_fn, configs, hparams, use_tpu=False):
prediction_dict
,
features
[
fields
.
InputDataFields
.
true_image_shape
])
if
mode
==
tf
.
estimator
.
ModeKeys
.
TRAIN
:
if
not
train_config
.
fine_tune_checkpoint_type
:
# train_config.from_detection_checkpoint field is deprecated. For
# backward compatibility, sets finetune_checkpoint_type based on
# from_detection_checkpoint.
if
train_config
.
from_detection_checkpoint
:
train_config
.
fine_tune_checkpoint_type
=
'detection'
else
:
train_config
.
fine_tune_checkpoint_type
=
'classification'
if
train_config
.
fine_tune_checkpoint
and
hparams
.
load_pretrained
:
if
not
train_config
.
fine_tune_checkpoint_type
:
# train_config.from_detection_checkpoint field is deprecated. For
...
...
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