From 6b448e5a334ca57862b4b06bc08a3c125b5265a3 Mon Sep 17 00:00:00 2001 From: nilfm Date: Tue, 23 Apr 2024 17:14:50 -0400 Subject: [PATCH 1/2] ffmpeg.yml: upgrade to python 3.11 --- .github/workflows/ffmpeg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ffmpeg.yml b/.github/workflows/ffmpeg.yml index e029109c9..f3cb1f79c 100644 --- a/.github/workflows/ffmpeg.yml +++ b/.github/workflows/ffmpeg.yml @@ -27,7 +27,7 @@ jobs: - name: Setup python uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.11 - name: Install meson and ninja run: | python -m pip install --upgrade pip From cb6ccb5e0c5f6823fc38ff5d7df9059c67f54a03 Mon Sep 17 00:00:00 2001 From: nilfm Date: Tue, 23 Apr 2024 19:17:29 -0400 Subject: [PATCH 2/2] noref_feature_extractor_test: reduce test sensitivity for 2 tests --- python/test/noref_feature_extractor_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/test/noref_feature_extractor_test.py b/python/test/noref_feature_extractor_test.py index 7085e3ee6..f82c48ff7 100644 --- a/python/test/noref_feature_extractor_test.py +++ b/python/test/noref_feature_extractor_test.py @@ -105,8 +105,8 @@ def test_run_noref_niqe_fextractor(self): self.assertAlmostEqual(results[0]['NIQE_noref_feature_alpha23_score'], 0.8168807870370377, places=4) self.assertAlmostEqual(results[0]['NIQE_noref_feature_alpha13_score'], 0.6949641203703707, places=4) - self.assertAlmostEqual(results[0]['NIQE_noref_feature_alpha_m1_score'], 2.0924143518518536, places=4) - self.assertAlmostEqual(results[0]['NIQE_noref_feature_blbr1_score'], 0.72958634325785898, places=4) + self.assertAlmostEqual(results[0]['NIQE_noref_feature_alpha_m1_score'], 2.0924143518518536, places=3) + self.assertAlmostEqual(results[0]['NIQE_noref_feature_blbr1_score'], 0.72958634325785898, places=3) self.assertAlmostEqual(results[1]['NIQE_noref_feature_alpha23_score'], 0.89566087962963026, places=4) self.assertAlmostEqual(results[1]['NIQE_noref_feature_alpha13_score'], 0.85539583333333391, places=4) @@ -157,8 +157,8 @@ def test_run_noref_niqe_fextractor_with_patch_size(self): self.assertAlmostEqual(results[0]['NIQE_noref_feature_alpha23_score'], 0.8430156250000006, places=4) self.assertAlmostEqual(results[0]['NIQE_noref_feature_alpha13_score'], 0.71714583333333359, places=4) - self.assertAlmostEqual(results[0]['NIQE_noref_feature_alpha_m1_score'], 2.2195590277777795, places=4) - self.assertAlmostEqual(results[0]['NIQE_noref_feature_blbr1_score'], 0.74061215376929412, places=4) + self.assertAlmostEqual(results[0]['NIQE_noref_feature_alpha_m1_score'], 2.2195590277777795, places=3) + self.assertAlmostEqual(results[0]['NIQE_noref_feature_blbr1_score'], 0.74061215376929412, places=3) self.assertAlmostEqual(results[1]['NIQE_noref_feature_alpha23_score'], 0.9144918981481488, places=4) self.assertAlmostEqual(results[1]['NIQE_noref_feature_alpha13_score'], 0.87132291666666728, places=4)