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
24347947
Unverified
Commit
24347947
authored
May 17, 2018
by
Asim Shankar
Committed by
GitHub
May 17, 2018
Browse files
Merge pull request #4037 from asimshankar/issue4013
Fix #4013
parents
e1bd8121
a3362c93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/slim/datasets/preprocess_imagenet_validation_data.py
...arch/slim/datasets/preprocess_imagenet_validation_data.py
+1
-1
No files found.
research/slim/datasets/preprocess_imagenet_validation_data.py
View file @
24347947
...
...
@@ -77,7 +77,7 @@ if __name__ == '__main__':
basename
=
'ILSVRC2012_val_000%.5d.JPEG'
%
(
i
+
1
)
original_filename
=
os
.
path
.
join
(
data_dir
,
basename
)
if
not
os
.
path
.
exists
(
original_filename
):
print
(
'Failed to find: '
%
original_filename
)
print
(
'Failed to find: '
,
original_filename
)
sys
.
exit
(
-
1
)
new_filename
=
os
.
path
.
join
(
data_dir
,
labels
[
i
],
basename
)
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