Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
test(upscale): give the Krea-2 entry-step test a text-only prompt
Alexander Eichhorn817538deecd4
diff --git a/tests/app/invocations/test_upscale_index_clipped_starts.py b/tests/app/invocations/test_upscale_index_clipped_starts.pyindex 940137203d..c152100026 100644--- a/tests/app/invocations/test_upscale_index_clipped_starts.py+++ b/tests/app/invocations/test_upscale_index_clipped_starts.py@@ -282,6 +282,8 @@ def krea2_entry(case: dict) -> tuple[list[float], float]:context.tensors.load.return_value = torch.zeros(1, 16, 8, 8)context.models.get_config.return_value = SimpleNamespace(variant=Krea2VariantType(case["variant"]))context.models.get_absolute_path.return_value = Path("no-such-krea2-model")+ # A text-only prompt: encoded with no reference images, as the node has no reference latents.+ context.conditioning.load.return_value = SimpleNamespace(conditionings=[SimpleNamespace(num_reference_images=0)])conditioning = SimpleNamespace(regional_text_conditioning=SimpleNamespace(prompt_embeds=torch.zeros(1, 4, 12, 8)))with ExitStack() as stack:stack.enter_context(patch(f"{KREA2_MODULE}.TorchDevice.choose_torch_device", return_value=torch.device("cpu")))