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
1b8f3566
Unverified
Commit
1b8f3566
authored
Nov 09, 2021
by
Nicolas Hug
Committed by
GitHub
Nov 09, 2021
Browse files
Change expected directory from "Kitti" to "KittiFlow" for KittiFlow dataset (#4889)
parent
a4ca717f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
test/test_datasets.py
test/test_datasets.py
+1
-1
torchvision/datasets/_optical_flow.py
torchvision/datasets/_optical_flow.py
+2
-2
No files found.
test/test_datasets.py
View file @
1b8f3566
...
...
@@ -1945,7 +1945,7 @@ class KittiFlowTestCase(datasets_utils.ImageDatasetTestCase):
FEATURE_TYPES
=
(
PIL
.
Image
.
Image
,
PIL
.
Image
.
Image
,
(
np
.
ndarray
,
type
(
None
)),
(
np
.
ndarray
,
type
(
None
)))
def
inject_fake_data
(
self
,
tmpdir
,
config
):
root
=
pathlib
.
Path
(
tmpdir
)
/
"Kitti"
root
=
pathlib
.
Path
(
tmpdir
)
/
"Kitti
Flow
"
num_examples
=
2
if
config
[
"split"
]
==
"train"
else
3
for
split_dir
in
(
"training"
,
"testing"
):
...
...
torchvision/datasets/_optical_flow.py
View file @
1b8f3566
...
...
@@ -155,7 +155,7 @@ class KittiFlow(FlowDataset):
The dataset is expected to have the following structure: ::
root
Kitti
Kitti
Flow
testing
image_2
training
...
...
@@ -176,7 +176,7 @@ class KittiFlow(FlowDataset):
verify_str_arg
(
split
,
"split"
,
valid_values
=
(
"train"
,
"test"
))
root
=
Path
(
root
)
/
"Kitti"
/
(
split
+
"ing"
)
root
=
Path
(
root
)
/
"Kitti
Flow
"
/
(
split
+
"ing"
)
images1
=
sorted
(
glob
(
str
(
root
/
"image_2"
/
"*_10.png"
)))
images2
=
sorted
(
glob
(
str
(
root
/
"image_2"
/
"*_11.png"
)))
...
...
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