Skip to content

Official Codebase of 3DCodeVerse

Python

texturing: retire the one-wave judge=<object> union

gaoypeng1a9559f867ff
diff --git a/harness/codeverse/texturing/run.py b/harness/codeverse/texturing/run.py
index fac167c7..3917bac0 100644
--- a/harness/codeverse/texturing/run.py
+++ b/harness/codeverse/texturing/run.py
@@ -185,10 +185,6 @@ def texture_pass(
plausible metallic/roughness numbers. It costs no model call, and the same
before/after judge gate (BEFORE is always the untouched ``glb_in``) decides
whether the combined result ships."""
- if not isinstance(judge, bool): # tolerate the retired bool|judge union for one wave
- log.warning("texture_pass(judge=<object>) is deprecated; pass judge_obj=... instead")
- judge_obj = judge_obj if judge_obj is not None else judge
- judge = True
if services is not None:
image_model = image_model if image_model is not None else services.image_model
plan_model = plan_model if plan_model is not None else services.plan_model
diff --git a/harness/tests/texturing/test_run.py b/harness/tests/texturing/test_run.py
index 25b55366..1d104fe4 100644
--- a/harness/tests/texturing/test_run.py
+++ b/harness/tests/texturing/test_run.py
@@ -78,9 +78,3 @@ def test_texture_services_bundle_and_deprecated_judge_object(tmp_path, chair_glb
cache_dir=tmp_path / "cache")
rep = texture_pass(ws, chair_spec, chair_plan, model_id="", services=services)
assert rep.shipped and rep.gate is not None
- # the retired bool|judge union still works for one wave (warns, routes to judge_obj)
- ws2 = _ws(tmp_path / "b", chair_glb, chair_spec, chair_plan)
- judge2 = FakeJudge([(0.70, {"materials": 0.6}), (0.73, {"materials": 0.75})])
- rep2 = texture_pass(ws2, chair_spec, chair_plan, model_id="", image_model=FakeImageModel(), judge=judge2,
- render=fake_render, cache_dir=tmp_path / "cache2")
- assert rep2.shipped and rep2.gate is not None