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
OpenDAS
dlib
Commits
9d32b83a
Commit
9d32b83a
authored
Jan 19, 2014
by
Davis King
Browse files
Minor code cleanup
parent
73b54620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
dlib/data_io/load_image_dataset.h
dlib/data_io/load_image_dataset.h
+2
-4
No files found.
dlib/data_io/load_image_dataset.h
View file @
9d32b83a
...
@@ -45,8 +45,7 @@ namespace dlib
...
@@ -45,8 +45,7 @@ namespace dlib
// Set the current directory to be the one that contains the
// Set the current directory to be the one that contains the
// metadata file. We do this because the file might contain
// metadata file. We do this because the file might contain
// file paths which are relative to this folder.
// file paths which are relative to this folder.
const
std
::
string
parent_dir
=
get_parent_directory
(
file
(
filename
)).
full_name
();
set_current_dir
(
get_parent_directory
(
file
(
filename
)));
set_current_dir
(
parent_dir
);
...
@@ -121,8 +120,7 @@ namespace dlib
...
@@ -121,8 +120,7 @@ namespace dlib
// Set the current directory to be the one that contains the
// Set the current directory to be the one that contains the
// metadata file. We do this because the file might contain
// metadata file. We do this because the file might contain
// file paths which are relative to this folder.
// file paths which are relative to this folder.
const
std
::
string
parent_dir
=
get_parent_directory
(
file
(
filename
)).
full_name
();
set_current_dir
(
get_parent_directory
(
file
(
filename
)));
set_current_dir
(
parent_dir
);
std
::
set
<
std
::
string
>
all_parts
;
std
::
set
<
std
::
string
>
all_parts
;
...
...
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