Add new tests and functionality for image processing and geometry handling

- Introduced color_image.py for preparing standalone color images for tests.
- Added hdr_image.py to create HDR textures for testing.
- Implemented test_image_depth_panorama.py to evaluate panorama topology, UVs, and depth discontinuities.
- Created test_shadeless.py to validate the opacity and HDR color endpoints of the Shadeless group.
- Developed moge3_export.py for exporting dynamic MoGe-3 backbone and ONNX graphs.
- Added material.py to inherit material slots onto generated geometry.
- Built image_depth_panorama.py to construct a quad panorama with depth separation and sampling.
This commit is contained in:
2026-09-10 14:42:17 +08:00
parent 27ca25224a
commit 489003c2cc
136 changed files with 5758 additions and 1083 deletions

View File

@@ -114,7 +114,7 @@ class PreferencesTest(BlenderTestCase):
def test_geometry_model_choices_match_moge_catalog(self):
properties = self.anyimage.properties
expected = tuple(properties.shared_model_catalog.MOGE2_MODELS)
expected = tuple(properties.shared_model_catalog.MOGE_MODELS)
geometry = properties.geometry_model_enum_items(None, None)
self.assertEqual(tuple(item[0] for item in geometry), expected)
@@ -222,7 +222,7 @@ class PreferencesTest(BlenderTestCase):
"ready": False,
}
for key, family in (
("MOGE2_VITS_NORMAL", "moge2"),
("MOGE2_VITS_NORMAL", "moge"),
("BEN2_BASE", "ben2"),
("REALESRGAN_GENERAL_WDN_X4V3", "upscale"),
("SAFMN_REAL_X4", "upscale"),
@@ -418,8 +418,8 @@ class PreferencesTest(BlenderTestCase):
with (
patch.object(self.convert_to_plane, "require_environment"),
patch.object(self.convert_to_plane, "require_model"),
patch.object(self.convert_to_plane, "require_input_path", return_value=Path("input.png")),
patch.object(self.convert_to_plane, "production_device", return_value="CPU"),
patch.object(self.convert_to_plane, "source_start_frame", return_value=1),
):
parameters = operator.request(context)