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
08bf19d2
Commit
08bf19d2
authored
Mar 20, 2017
by
Neal Wu
Browse files
Formatting/style fixes
parent
ce1628a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
inception/inception/data/build_image_data.py
inception/inception/data/build_image_data.py
+3
-4
No files found.
inception/inception/data/build_image_data.py
View file @
08bf19d2
...
@@ -263,12 +263,11 @@ def _process_image_files_batch(coder, thread_index, ranges, name, filenames,
...
@@ -263,12 +263,11 @@ def _process_image_files_batch(coder, thread_index, ranges, name, filenames,
try
:
try
:
image_buffer
,
height
,
width
=
_process_image
(
filename
,
coder
)
image_buffer
,
height
,
width
=
_process_image
(
filename
,
coder
)
except
Exception
,
e
:
except
Exception
as
e
:
print
(
e
)
print
(
e
)
print
(
'SKIPPED
.
Unexpected eror while decoding %s'
%
filename
)
print
(
'SKIPPED
:
Unexpected eror while decoding %s
.
'
%
filename
)
continue
continue
example
=
_convert_to_example
(
filename
,
image_buffer
,
label
,
example
=
_convert_to_example
(
filename
,
image_buffer
,
label
,
text
,
height
,
width
)
text
,
height
,
width
)
writer
.
write
(
example
.
SerializeToString
())
writer
.
write
(
example
.
SerializeToString
())
...
...
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