|
12 | 12 | from numpy.random import randint
|
13 | 13 | from torchvision import set_video_backend
|
14 | 14 | from torchvision.io import _HAS_VIDEO_OPT
|
15 |
| -from common_utils import PY39_SKIP, assert_equal |
| 15 | +from common_utils import assert_equal |
16 | 16 |
|
17 | 17 |
|
18 | 18 | try:
|
@@ -423,7 +423,6 @@ def test_stress_test_read_video_from_file(self):
|
423 | 423 | audio_timebase_den,
|
424 | 424 | )
|
425 | 425 |
|
426 |
| - @PY39_SKIP |
427 | 426 | def test_read_video_from_file(self):
|
428 | 427 | """
|
429 | 428 | Test the case when decoder starts with a video file to decode frames.
|
@@ -469,7 +468,6 @@ def test_read_video_from_file(self):
|
469 | 468 | # compare decoding results
|
470 | 469 | self.compare_decoding_result(tv_result, pyav_result, config)
|
471 | 470 |
|
472 |
| - @PY39_SKIP |
473 | 471 | def test_read_video_from_file_read_single_stream_only(self):
|
474 | 472 | """
|
475 | 473 | Test the case when decoder starts with a video file to decode frames, and
|
@@ -770,7 +768,6 @@ def test_read_video_from_file_rescale_width_and_height(self):
|
770 | 768 | assert tv_result[0].size(1) == height
|
771 | 769 | assert tv_result[0].size(2) == width
|
772 | 770 |
|
773 |
| - @PY39_SKIP |
774 | 771 | def test_read_video_from_file_audio_resampling(self):
|
775 | 772 | """
|
776 | 773 | Test the case when decoder starts with a video file to decode frames, and
|
@@ -826,7 +823,6 @@ def test_read_video_from_file_audio_resampling(self):
|
826 | 823 | )
|
827 | 824 | assert aframes.size(0) == approx(int(duration * asample_rate.item()), abs=0.1 * asample_rate.item())
|
828 | 825 |
|
829 |
| - @PY39_SKIP |
830 | 826 | def test_compare_read_video_from_memory_and_file(self):
|
831 | 827 | """
|
832 | 828 | Test the case when video is already in memory, and decoder reads data in memory
|
@@ -893,7 +889,6 @@ def test_compare_read_video_from_memory_and_file(self):
|
893 | 889 | # finally, compare results decoded from memory and file
|
894 | 890 | self.compare_decoding_result(tv_result_memory, tv_result_file)
|
895 | 891 |
|
896 |
| - @PY39_SKIP |
897 | 892 | def test_read_video_from_memory(self):
|
898 | 893 | """
|
899 | 894 | Test the case when video is already in memory, and decoder reads data in memory
|
@@ -938,7 +933,6 @@ def test_read_video_from_memory(self):
|
938 | 933 | self.check_separate_decoding_result(tv_result, config)
|
939 | 934 | self.compare_decoding_result(tv_result, pyav_result, config)
|
940 | 935 |
|
941 |
| - @PY39_SKIP |
942 | 936 | def test_read_video_from_memory_get_pts_only(self):
|
943 | 937 | """
|
944 | 938 | Test the case when video is already in memory, and decoder reads data in memory.
|
@@ -1008,7 +1002,6 @@ def test_read_video_from_memory_get_pts_only(self):
|
1008 | 1002 | assert not tv_result_pts_only[5].numel()
|
1009 | 1003 | self.compare_decoding_result(tv_result, tv_result_pts_only)
|
1010 | 1004 |
|
1011 |
| - @PY39_SKIP |
1012 | 1005 | def test_read_video_in_range_from_memory(self):
|
1013 | 1006 | """
|
1014 | 1007 | Test the case when video is already in memory, and decoder reads data in memory.
|
@@ -1184,7 +1177,6 @@ def test_probe_video_from_memory_script(self):
|
1184 | 1177 | probe_result = scripted_fun(video_tensor)
|
1185 | 1178 | self.check_meta_result(probe_result, config)
|
1186 | 1179 |
|
1187 |
| - @PY39_SKIP |
1188 | 1180 | def test_read_video_from_memory_scripted(self):
|
1189 | 1181 | """
|
1190 | 1182 | Test the case when video is already in memory, and decoder reads data in memory
|
|
0 commit comments