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
c998779e
Commit
c998779e
authored
Jun 12, 2017
by
Neal Wu
Committed by
GitHub
Jun 12, 2017
Browse files
Merge pull request #1545 from mindos/master
Fixed error message for inception/imagenet.
parents
d4ae8d1e
5ecced39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
inception/inception/data/preprocess_imagenet_validation_data.py
...ion/inception/data/preprocess_imagenet_validation_data.py
+1
-1
No files found.
inception/inception/data/preprocess_imagenet_validation_data.py
View file @
c998779e
...
@@ -76,7 +76,7 @@ if __name__ == '__main__':
...
@@ -76,7 +76,7 @@ if __name__ == '__main__':
basename
=
'ILSVRC2012_val_000%.5d.JPEG'
%
(
i
+
1
)
basename
=
'ILSVRC2012_val_000%.5d.JPEG'
%
(
i
+
1
)
original_filename
=
os
.
path
.
join
(
data_dir
,
basename
)
original_filename
=
os
.
path
.
join
(
data_dir
,
basename
)
if
not
os
.
path
.
exists
(
original_filename
):
if
not
os
.
path
.
exists
(
original_filename
):
print
(
'Failed to find: '
%
original_filename
)
print
(
'Failed to find:
%s
'
%
original_filename
)
sys
.
exit
(
-
1
)
sys
.
exit
(
-
1
)
new_filename
=
os
.
path
.
join
(
data_dir
,
labels
[
i
],
basename
)
new_filename
=
os
.
path
.
join
(
data_dir
,
labels
[
i
],
basename
)
os
.
rename
(
original_filename
,
new_filename
)
os
.
rename
(
original_filename
,
new_filename
)
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