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
fe0d280d
Unverified
Commit
fe0d280d
authored
Dec 05, 2023
by
Nicolas Hug
Committed by
GitHub
Dec 05, 2023
Browse files
Avoid segfault in VideoClip test (#8148)
parent
30397d91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/test_datasets_video_utils.py
test/test_datasets_video_utils.py
+1
-1
No files found.
test/test_datasets_video_utils.py
View file @
fe0d280d
...
@@ -60,7 +60,7 @@ class TestVideo:
...
@@ -60,7 +60,7 @@ class TestVideo:
video_list
=
get_list_of_videos
(
tmpdir
,
num_videos
=
3
,
sizes
=
[
12
,
12
,
12
],
fps
=
[
3
,
4
,
6
])
video_list
=
get_list_of_videos
(
tmpdir
,
num_videos
=
3
,
sizes
=
[
12
,
12
,
12
],
fps
=
[
3
,
4
,
6
])
num_frames
=
4
num_frames
=
4
for
fps
in
[
1
,
3
,
4
,
10
]:
for
fps
in
[
1
,
3
,
4
,
10
]:
video_clips
=
VideoClips
(
video_list
,
num_frames
,
num_frames
,
fps
,
num_workers
=
2
)
video_clips
=
VideoClips
(
video_list
,
num_frames
,
num_frames
,
fps
)
for
i
in
range
(
video_clips
.
num_clips
()):
for
i
in
range
(
video_clips
.
num_clips
()):
video
,
audio
,
info
,
video_idx
=
video_clips
.
get_clip
(
i
)
video
,
audio
,
info
,
video_idx
=
video_clips
.
get_clip
(
i
)
assert
video
.
shape
[
0
]
==
num_frames
assert
video
.
shape
[
0
]
==
num_frames
...
...
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