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
vision
Commits
9b29f3f2
Unverified
Commit
9b29f3f2
authored
Jun 01, 2021
by
IgorSusmelj
Committed by
GitHub
Jun 01, 2021
Browse files
Faster dataset indexing (#3939)
parent
234d262f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/datasets/folder.py
torchvision/datasets/folder.py
+2
-2
No files found.
torchvision/datasets/folder.py
View file @
9b29f3f2
...
...
@@ -86,8 +86,8 @@ def make_dataset(
continue
for
root
,
_
,
fnames
in
sorted
(
os
.
walk
(
target_dir
,
followlinks
=
True
)):
for
fname
in
sorted
(
fnames
):
path
=
os
.
path
.
join
(
root
,
fname
)
if
is_valid_file
(
path
):
if
is_valid_file
(
fname
)
:
path
=
os
.
path
.
join
(
root
,
fname
)
item
=
path
,
class_index
instances
.
append
(
item
)
...
...
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