From b9efcfd93cfcd04f4302d11a700854db79bbd64e Mon Sep 17 00:00:00 2001 From: Rishabh Tyagi Date: Fri, 14 Nov 2025 22:50:50 +0530 Subject: [PATCH 1/4] corridor changes --- scripts/ivas_conformance/runConformance.py | 23 ++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/scripts/ivas_conformance/runConformance.py b/scripts/ivas_conformance/runConformance.py index b696598804..148ec5ccda 100644 --- a/scripts/ivas_conformance/runConformance.py +++ b/scripts/ivas_conformance/runConformance.py @@ -889,7 +889,7 @@ class MLDConformance: else: print(f"<{tag}> PASSED BE TEST") - def computeCorridor(self, mldRefWithTags, mldCutWithTags, tag, threshold=1.0): + def computeCorridor(self, mldRefWithTags, mldCutWithTags, tag, threshold=0.0): mldDict = dict[str, list]() failed = False @@ -900,9 +900,28 @@ class MLDConformance: ) refMLD = mldRefWithTags["MLD"][indRef] dutMLD = mldCutWithTags["MLD"][indDut] + diff = dutMLD - refMLD + if diff.max() > threshold: print(f"\033[91mMLD Corridor failed for {tag} with max MLD diff of {diff.max()} \033[00m") + maxMLD = np.maximum(dutMLD, refMLD) + mldWithTags = np.column_stack( + ( + maxMLD, + intersection, + ) + ) + new_mld_dir = os.path.join( + self.testvDir, "mld_ref") + if not os.path.exists(new_mld_dir): + os.makedirs(new_mld_dir, exist_ok=True) + + refMldFile2 = os.path.join( + self.testvDir, "mld_ref", ReferenceMldFiles[tag] + ) + with open(refMldFile2, "ab") as f: + np.savetxt(f, mldWithTags, fmt="%s", delimiter=",") else: print(f"\033[92mMLD Corridor passed for {tag} with max MLD diff of {diff.max()} \033[00m") @@ -964,7 +983,7 @@ class MLDConformance: mldRefWithTags = np.loadtxt( refMldFile, delimiter=",", - dtype=[("MLD", "f8"), ("pyTestTag", " Date: Sat, 15 Nov 2025 02:50:31 +0530 Subject: [PATCH 2/4] fixes to update corridor --- scripts/ivas_conformance/runConformance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ivas_conformance/runConformance.py b/scripts/ivas_conformance/runConformance.py index 148ec5ccda..d8dde4358d 100644 --- a/scripts/ivas_conformance/runConformance.py +++ b/scripts/ivas_conformance/runConformance.py @@ -913,12 +913,12 @@ class MLDConformance: ) ) new_mld_dir = os.path.join( - self.testvDir, "mld_ref") + self.testvDir, "mld_ref2") if not os.path.exists(new_mld_dir): os.makedirs(new_mld_dir, exist_ok=True) refMldFile2 = os.path.join( - self.testvDir, "mld_ref", ReferenceMldFiles[tag] + self.testvDir, "mld_ref2", ReferenceMldFiles[tag] ) with open(refMldFile2, "ab") as f: np.savetxt(f, mldWithTags, fmt="%s", delimiter=",") -- GitLab From ee1b252a936579a9c222b18371540b0e2b8c24d5 Mon Sep 17 00:00:00 2001 From: Rishabh Tyagi Date: Sat, 15 Nov 2025 02:56:20 +0530 Subject: [PATCH 3/4] fixes to update corridor --- scripts/ivas_conformance/runConformance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ivas_conformance/runConformance.py b/scripts/ivas_conformance/runConformance.py index d8dde4358d..d168548fbd 100644 --- a/scripts/ivas_conformance/runConformance.py +++ b/scripts/ivas_conformance/runConformance.py @@ -920,7 +920,7 @@ class MLDConformance: refMldFile2 = os.path.join( self.testvDir, "mld_ref2", ReferenceMldFiles[tag] ) - with open(refMldFile2, "ab") as f: + with open(refMldFile2, "w") as f: np.savetxt(f, mldWithTags, fmt="%s", delimiter=",") else: print(f"\033[92mMLD Corridor passed for {tag} with max MLD diff of {diff.max()} \033[00m") -- GitLab From 01d2ecb55dcb07c3b55772c91f7393f6bc9d5140 Mon Sep 17 00:00:00 2001 From: Rishabh Tyagi Date: Sat, 15 Nov 2025 07:06:04 +0530 Subject: [PATCH 4/4] stop copying conformance pytest script --- scripts/ivas_conformance/ivas_be_conf_test_gen.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/ivas_conformance/ivas_be_conf_test_gen.sh b/scripts/ivas_conformance/ivas_be_conf_test_gen.sh index aa80ed533d..b41e3ab724 100644 --- a/scripts/ivas_conformance/ivas_be_conf_test_gen.sh +++ b/scripts/ivas_conformance/ivas_be_conf_test_gen.sh @@ -31,7 +31,6 @@ cp -r tests/split_rendering/error_patterns testvec/testv/split_rendering/error_p python3 scripts/cleanup_26252.py -cp -r tests/conformance-test testvec/ cp Readme_IVAS_dec.txt testvec cp Readme_IVAS_enc.txt testvec cp Readme_IVAS_rend.txt testvec -- GitLab