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
929c81d4
"vscode:/vscode.git/clone" did not exist on "9a0511c8e91a7f633c9c3292fccbcbad5281d1f5"
Commit
929c81d4
authored
Oct 06, 2019
by
Zhicheng Yan
Committed by
Francisco Massa
Oct 07, 2019
Browse files
remove hardcoded video extension in kinetics400 dataset (#1418)
parent
76702a03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
torchvision/datasets/kinetics.py
torchvision/datasets/kinetics.py
+0
-1
No files found.
torchvision/datasets/kinetics.py
View file @
929c81d4
...
@@ -41,7 +41,6 @@ class Kinetics400(VisionDataset):
...
@@ -41,7 +41,6 @@ class Kinetics400(VisionDataset):
num_workers
=
1
,
_video_width
=
0
,
_video_height
=
0
,
num_workers
=
1
,
_video_width
=
0
,
_video_height
=
0
,
_video_min_dimension
=
0
,
_audio_samples
=
0
):
_video_min_dimension
=
0
,
_audio_samples
=
0
):
super
(
Kinetics400
,
self
).
__init__
(
root
)
super
(
Kinetics400
,
self
).
__init__
(
root
)
extensions
=
(
'avi'
,)
classes
=
list
(
sorted
(
list_dir
(
root
)))
classes
=
list
(
sorted
(
list_dir
(
root
)))
class_to_idx
=
{
classes
[
i
]:
i
for
i
in
range
(
len
(
classes
))}
class_to_idx
=
{
classes
[
i
]:
i
for
i
in
range
(
len
(
classes
))}
...
...
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