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
e38b9ee4
Unverified
Commit
e38b9ee4
authored
Mar 11, 2021
by
Philip Meier
Committed by
GitHub
Mar 11, 2021
Browse files
remove redundant path.join in Places365 (#3545)
parent
7992eb5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/datasets/places365.py
torchvision/datasets/places365.py
+1
-1
No files found.
torchvision/datasets/places365.py
View file @
e38b9ee4
...
@@ -162,7 +162,7 @@ class Places365(VisionDataset):
...
@@ -162,7 +162,7 @@ class Places365(VisionDataset):
return
verify_str_arg
(
split
,
"split"
,
self
.
_SPLITS
)
return
verify_str_arg
(
split
,
"split"
,
self
.
_SPLITS
)
def
_check_integrity
(
self
,
file
:
str
,
md5
:
str
,
download
:
bool
)
->
bool
:
def
_check_integrity
(
self
,
file
:
str
,
md5
:
str
,
download
:
bool
)
->
bool
:
integrity
=
check_integrity
(
path
.
join
(
self
.
root
,
file
)
,
md5
=
md5
)
integrity
=
check_integrity
(
file
,
md5
=
md5
)
if
not
integrity
and
not
download
:
if
not
integrity
and
not
download
:
raise
RuntimeError
(
raise
RuntimeError
(
f
"The file
{
file
}
does not exist or is corrupted. You can set download=True to download it."
f
"The file
{
file
}
does not exist or is corrupted. You can set download=True to download it."
...
...
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