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
8f16def1
Commit
8f16def1
authored
Jun 26, 2017
by
Byeongjoo Ahn
Committed by
GitHub
Jun 26, 2017
Browse files
Fix compatibility for Python3
iteritems() -> items()
parent
56765e5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
object_detection/utils/variables_helper.py
object_detection/utils/variables_helper.py
+1
-1
No files found.
object_detection/utils/variables_helper.py
View file @
8f16def1
...
...
@@ -122,7 +122,7 @@ def get_variables_available_in_checkpoint(variables, checkpoint_path):
ckpt_reader
=
tf
.
train
.
NewCheckpointReader
(
checkpoint_path
)
ckpt_vars
=
ckpt_reader
.
get_variable_to_shape_map
().
keys
()
vars_in_ckpt
=
{}
for
variable_name
,
variable
in
sorted
(
variable_names_map
.
iter
items
()):
for
variable_name
,
variable
in
sorted
(
variable_names_map
.
items
()):
if
variable_name
in
ckpt_vars
:
vars_in_ckpt
[
variable_name
]
=
variable
else
:
...
...
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